diff --git a/changelog/68328.fixed.md b/changelog/68328.fixed.md new file mode 100644 index 00000000000..2bffecb8483 --- /dev/null +++ b/changelog/68328.fixed.md @@ -0,0 +1 @@ +Fixed cp.cache_file when using Tornado > 6.4 diff --git a/salt/fileclient.py b/salt/fileclient.py index 34f12728c8c..8b43cac21f2 100644 --- a/salt/fileclient.py +++ b/salt/fileclient.py @@ -744,7 +744,7 @@ def on_header(hdr): # Check the status line of the HTTP request if write_body[0] is None: try: - hdr = parse_response_start_line(hdr) + hdr = parse_response_start_line(hdr.strip()) except HTTPInputError: # Not the first line, do nothing return