From e723c2d6ad92e588c4d52af2d7c50fbec182e653 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sun, 29 May 2016 22:17:45 +0200 Subject: [PATCH] fix bytes vs. str --- netlib/tutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netlib/tutils.py b/netlib/tutils.py index 6c3d54fee..e44534ec6 100644 --- a/netlib/tutils.py +++ b/netlib/tutils.py @@ -107,7 +107,7 @@ def treq(**kwargs): port=22, path=b"/path", http_version=b"HTTP/1.1", - headers=Headers((("header", "qvalue"), ("content-length", "7"))), + headers=Headers(((b"header", b"qvalue"), (b"content-length", b"7"))), content=b"content" ) default.update(kwargs) @@ -123,7 +123,7 @@ def tresp(**kwargs): http_version=b"HTTP/1.1", status_code=200, reason=b"OK", - headers=Headers((("header-response", "svalue"), ("content-length", "7"))), + headers=Headers(((b"header-response", b"svalue"), (b"content-length", b"7"))), content=b"message", timestamp_start=time.time(), timestamp_end=time.time(),