Trim GRIDS URLs before parsing them

This commit is contained in:
Craig Everett 2025-08-07 14:30:16 +09:00
parent 42b9e9e9db
commit a174230f6e

View File

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