Skip to content

Commit

Permalink
len(k) is guaranteed to be greater than 1 in this case
Browse files Browse the repository at this point in the history
  • Loading branch information
suzaku committed Dec 8, 2021
1 parent b69b032 commit 4f82413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Expand Up @@ -53,7 +53,7 @@ func FilterCustomQuery(u *nurl.URL) *nurl.URL {
ux := *u
vx := make(nurl.Values)
for k, v := range ux.Query() {
if len(k) <= 1 || (len(k) > 1 && k[0:2] != "x-") {
if len(k) <= 1 || k[0:2] != "x-" {
vx[k] = v
}
}
Expand Down

0 comments on commit 4f82413

Please sign in to comment.