Skip to content

Commit

Permalink
Merge pull request #355 from ferhatelmas/ferhat/fix-header-cleanup
Browse files Browse the repository at this point in the history
fix: header cleanup
  • Loading branch information
imroc authored May 22, 2024
2 parents 47d3033 + 382b9b1 commit 384ff51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion header.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func headerWriteSubset(h http.Header, exclude map[string]bool, writeHeader func(
}
for i, v := range kv.Values {
vv := headerNewlineToSpace.Replace(v)
vv = textproto.TrimString(v)
vv = textproto.TrimString(vv)
if vv != v {
kv.Values[i] = vv
}
Expand Down

0 comments on commit 384ff51

Please sign in to comment.