Skip to content

Commit 382b9b1

Browse files
committedMay 21, 2024
fix: header cleanup
replaced value should be trimmed, otherwise escape characters won't be handled correctly.
1 parent 47d3033 commit 382b9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎header.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func headerWriteSubset(h http.Header, exclude map[string]bool, writeHeader func(
100100
}
101101
for i, v := range kv.Values {
102102
vv := headerNewlineToSpace.Replace(v)
103-
vv = textproto.TrimString(v)
103+
vv = textproto.TrimString(vv)
104104
if vv != v {
105105
kv.Values[i] = vv
106106
}

0 commit comments

Comments
 (0)
Please sign in to comment.