Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic182 committed Dec 11, 2020
1 parent 285b743 commit 4a96331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ def test_headers_retrival():

def test_headers_retrival_common():
"""Test reading header with more than one ":" char ocurrence."""
res = [b'Authorization', b'Bearer foobar']
sample_header = b': '.join(res) + b'\r\n'
res = ['Authorization', 'Bearer foobar']
sample_header = b': '.join([item.encode() for item in res]) + b'\r\n'
assert HttpHeaders._clear_line(sample_header) == res

0 comments on commit 4a96331

Please sign in to comment.