diff options
author | kira0204 <rshtmudgal@gmail.com> | 2018-02-16 22:30:29 +0530 |
---|---|---|
committer | kira0204 <rshtmudgal@gmail.com> | 2018-02-16 22:30:29 +0530 |
commit | 60cd8cb0b10d1e7737d1d1da4a5c65481d94416c (patch) | |
tree | 9f237c975df1f34cfe29b4a6d91cd6b226026b47 | |
parent | e82641ee2d4287a0c422956e28c858b7877cfe01 (diff) | |
download | mitmproxy-60cd8cb0b10d1e7737d1d1da4a5c65481d94416c.tar.gz mitmproxy-60cd8cb0b10d1e7737d1d1da4a5c65481d94416c.tar.bz2 mitmproxy-60cd8cb0b10d1e7737d1d1da4a5c65481d94416c.zip |
Adding test
-rw-r--r-- | test/mitmproxy/net/http/test_request.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/net/http/test_request.py b/test/mitmproxy/net/http/test_request.py index ce49002c..3653d050 100644 --- a/test/mitmproxy/net/http/test_request.py +++ b/test/mitmproxy/net/http/test_request.py @@ -354,7 +354,7 @@ class TestRequestUtils: assert len(request.urlencoded_form) == 0 def test_set_urlencoded_form(self): - request = treq() + request = treq(content=b"\xec\xed") request.urlencoded_form = [('foo', 'bar'), ('rab', 'oof')] assert request.headers["Content-Type"] == "application/x-www-form-urlencoded" assert request.content |