From d2b8cd4816e51fdc359e76a730830ec1b285331f Mon Sep 17 00:00:00 2001 From: James Ranson Date: Sat, 2 Dec 2023 17:44:14 -0700 Subject: [PATCH] fix typo Signed-off-by: James Ranson --- pkg/proxy/params/params.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/proxy/params/params.go b/pkg/proxy/params/params.go index b41b81b27..dcdb1f122 100644 --- a/pkg/proxy/params/params.go +++ b/pkg/proxy/params/params.go @@ -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] {