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"} ->