Skip to content

Commit

Permalink
convert to camelcase
Browse files Browse the repository at this point in the history
Signed-off-by: Willem Veerman <6502426+willemveerman@users.noreply.github.com>
  • Loading branch information
willemveerman committed May 16, 2024
1 parent 091621f commit 0cf49d2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions contrib/golang/filters/http/source/go/pkg/http/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ func (h *requestOrResponseHeaderMapImpl) GetAllHeaders() map[string][]string {
h.mutex.Lock()
defer h.mutex.Unlock()
h.initHeaders()
copied_headers := make(map[string][]string)
copiedHeaders := make(map[string][]string)
for key, value := range h.headers {
copied_headers[key] = make([]string, len(value))
copy(copied_headers[key], value)
copiedHeaders[key] = make([]string, len(value))
copy(copiedHeaders[key], value)
}
return copied_headers
return copiedHeaders
}

// api.RequestHeaderMap
Expand Down Expand Up @@ -334,12 +334,12 @@ func (h *requestOrResponseTrailerMapImpl) GetAllHeaders() map[string][]string {
h.mutex.Lock()
defer h.mutex.Unlock()
h.initTrailers()
copied_headers := make(map[string][]string)
copiedHeaders := make(map[string][]string)
for key, value := range h.headers {
copied_headers[key] = make([]string, len(value))
copy(copied_headers[key], value)
copiedHeaders[key] = make([]string, len(value))
copy(copiedHeaders[key], value)
}
return copied_headers
return copiedHeaders
}

// api.RequestTrailerMap
Expand Down

0 comments on commit 0cf49d2

Please sign in to comment.