Skip to content

Commit

Permalink
fixes netom#40
Browse files Browse the repository at this point in the history
  • Loading branch information
sstamoulis committed Mar 26, 2022
1 parent 1dd32c8 commit edb1a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyicap.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def send_headers(self, has_body=False):
icap_header_str = b''
for k in self.icap_headers:
for v in self.icap_headers[k]:
icap_header_str += "{}: {}\r\n".format(k, v).encode()
icap_header_str += k + b': ' + v + b'\r\n'
if k.lower() == b'connection' and v.lower() == b'close':
self.close_connection = True
if k.lower() == b'connection' and v.lower() == b'keep-alive':
Expand Down

0 comments on commit edb1a9f

Please sign in to comment.