Skip to content

Commit

Permalink
change where neutralize is applied
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-garciad committed Feb 9, 2024
1 parent 561a7fb commit cf65c82
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions steps/http/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ func (s *Session) URL() (*url.URL, error) {
for key, values := range s.Request.QueryParams {
for _, value := range values {
if !params.Has(key) {
keyN := neutralize(key)
valueN := neutralize(value)
params.Add(keyN, valueN)
params.Add(key, value)
}
}
}
Expand Down Expand Up @@ -240,7 +238,7 @@ func (s *Session) SendHTTPRequest(ctx context.Context, method string) error {
if s.Request.Headers != nil {
hostHeaders, found := s.Request.Headers["Host"]
if found && len(hostHeaders) > 0 {
req.Host = hostHeaders[0]
req.Host = neutralize(hostHeaders[0])
}
}
req.Header = s.Request.Headers
Expand Down

0 comments on commit cf65c82

Please sign in to comment.