From a174230f6efbd275a0394409f65a65738c124b30 Mon Sep 17 00:00:00 2001 From: Craig Everett Date: Thu, 7 Aug 2025 14:30:16 +0900 Subject: [PATCH] Trim GRIDS URLs before parsing them --- src/gd_grids.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gd_grids.erl b/src/gd_grids.erl index e60b1aa..a639e30 100644 --- a/src/gd_grids.erl +++ b/src/gd_grids.erl @@ -59,7 +59,7 @@ Reason :: bad_url. parse(URL) -> - case uri_string:parse(URL) of + case uri_string:parse(string:trim(URL)) of #{path := "/1/s/" ++ R, host := H, query := Q, scheme := "grids"} -> spend(R, chain, list_to_binary(H), Q); #{path := "/1/s/" ++ R, host := H, query := Q, scheme := "grid"} ->