We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42f6bec commit 3dbe62fCopy full SHA for 3dbe62f
url/url.go
@@ -52,7 +52,9 @@ func (u *URL) Update() {
52
// This is a hot patch for url.URL
53
// parameters are serialized when parsed with `url.Parse()` to avoid this
54
// url should be parsed without parameters and then assigned with url.RawQuery to force unserialized parameters
55
- u.RawQuery = u.Params.Encode()
+ if u.Params != nil {
56
+ u.RawQuery = u.Params.Encode()
57
+ }
58
}
59
60
// Query returns Query Params
0 commit comments