Skip to content

Commit

Permalink
fix #57
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Valodzka committed Nov 15, 2022
1 parent b34e73c commit 88b7276
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 88b7276

Please sign in to comment.