Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: James Ranson <james@ranson.org>
  • Loading branch information
jranson committed Dec 3, 2023
1 parent 13920bd commit d2b8cd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/proxy/params/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ func GetRequestValues(r *http.Request) (url.Values, string, bool) {
r.Body.Close()
r.Body = io.NopCloser(bytes.NewReader(b))
s = string(b)
isBody = true
if strings.HasPrefix(strings.ToLower(r.Header.Get(headers.NameContentType)), headers.ValueApplicationJSON) {
return v, s, is body
}
isBody = true
if strings.HasPrefix(strings.ToLower(r.Header.Get(headers.NameContentType)), headers.ValueApplicationJSON) {
return v, s, isBody
}
if vs, err := url.ParseQuery(s); err == nil && isQueryBody(r) {
for vsk := range vs {
for _, vsv := range vs[vsk] {
Expand Down

0 comments on commit d2b8cd4

Please sign in to comment.