Skip to content

Commit

Permalink
Merge pull request #924 from projectdiscovery/fix_header_marshalling
Browse files Browse the repository at this point in the history
fix header marshalling
  • Loading branch information
Mzack9999 authored Jun 11, 2024
2 parents 18ef46c + c60b49a commit 38d052c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/navigation/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Form struct {
func (h *Headers) MarshalJSON() ([]byte, error) {
hCopy := make(Headers)
for k, v := range *h {
k := strings.ReplaceAll(strings.ToLower(k), "-", "_")
k := strings.ToLower(k)
hCopy[k] = v
}
return jsoniter.Marshal(hCopy)
Expand Down

0 comments on commit 38d052c

Please sign in to comment.