Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 5d9c2df

Browse files
committed
Fix error with header replacement.
1 parent 8d2f9ef commit 5d9c2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hyper/common/headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def replace(self, key, value):
187187
method work like ``__setitem__``. Replacing leads to deletion of all
188188
existing headers with the same name.
189189
"""
190-
key = to_bytestring(key)
190+
key, value = to_bytestring_tuple(key, value)
191191
indices = []
192192
for (i, (k, v)) in enumerate(self._items):
193193
if _keys_equal(k, key):

0 commit comments

Comments
 (0)