You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This outputs a/b. But if the rawUrl has a base path, eg. rawUrl := "https://www.example.com/api?z=1", output will be /api/a/b. This is an inconsistent treatment of leading "/".
What did you see happen?
All the time.
What did you expect to see?
Leading "/" present in all (*URL) .Path variables.
The text was updated successfully, but these errors were encountered:
Go version
go version go1.21.7 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
This outputs
a/b
. But if the rawUrl has a base path, eg.rawUrl := "https://www.example.com/api?z=1"
, output will be/api/a/b
. This is an inconsistent treatment of leading "/".What did you see happen?
All the time.
What did you expect to see?
Leading "/" present in all (*URL) .Path variables.
The text was updated successfully, but these errors were encountered: