Skip to content

Commit 7f49620

Browse files
committed
Strip CRLF from headers before parsing
1 parent 3ce11a7 commit 7f49620

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/68328.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed cp.cache_file when using Tornado > 6.4

salt/fileclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ def on_header(hdr):
744744
# Check the status line of the HTTP request
745745
if write_body[0] is None:
746746
try:
747-
hdr = parse_response_start_line(hdr)
747+
hdr = parse_response_start_line(hdr.strip())
748748
except HTTPInputError:
749749
# Not the first line, do nothing
750750
return

0 commit comments

Comments
 (0)