Skip to content

Commit

Permalink
Merge pull request #58 from valodzka/master
Browse files Browse the repository at this point in the history
fix #57
  • Loading branch information
nikepan authored Nov 16, 2022
2 parents b34e73c + 88b7276 commit 94c164d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ func (c *Collector) ParseQuery(queryString string, body string) (params string,
var q string
eoq := strings.Index(queryString[i+6:], "&")
if eoq >= 0 {
q = queryString[i+6 : eoq+6]
params = queryString[:i] + queryString[eoq+7:]
q = queryString[i+6 : eoq+i+6]
params = queryString[:i] + queryString[eoq+i+7:]
} else {
q = queryString[i+6:]
params = queryString[:i]
Expand Down

0 comments on commit 94c164d

Please sign in to comment.