Skip to content

Commit

Permalink
Merge pull request #114 from projectdiscovery/bugfix-nil-params
Browse files Browse the repository at this point in the history
Adding nil check on url Params
  • Loading branch information
Mzack9999 authored Mar 23, 2023
2 parents 42f6bec + 3dbe62f commit fc09120
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ func (u *URL) Update() {
// This is a hot patch for url.URL
// parameters are serialized when parsed with `url.Parse()` to avoid this
// url should be parsed without parameters and then assigned with url.RawQuery to force unserialized parameters
u.RawQuery = u.Params.Encode()
if u.Params != nil {
u.RawQuery = u.Params.Encode()
}
}

// Query returns Query Params
Expand Down

0 comments on commit fc09120

Please sign in to comment.