You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f5bb80f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: lib/protocol/http1/body/chunked.rb
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,7 @@ def read_trailer
154
154
breakifline.empty?
155
155
156
156
ifmatch=line.match(HEADER)
157
+
# SECURITY: Trailers join the headers unmarked. This is not a smuggling vector: `trailer: true` admits only fields whose policy permits trailers, and position does not change what those fields mean.
157
158
@headers.add(match[1],match[2],trailer: true)
158
159
else
159
160
raiseBadHeader,"Could not parse header: #{line.inspect}"
0 commit comments