aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2020-03-30 23:09:07 +0200
committerGitHub <noreply@github.com>2020-03-30 23:09:07 +0200
commit67368232c509a38087c2809aeb193c0b7a1f541d (patch)
tree5e0ce2f3f5855d965012104d9dbb4c9a4137b55f /test
parent7d87154130e1052e4ecb3d3c2e754124d76b18f8 (diff)
parent1930578f05aa8574b8df94cad099cdf14a869723 (diff)
downloadmitmproxy-67368232c509a38087c2809aeb193c0b7a1f541d.tar.gz
mitmproxy-67368232c509a38087c2809aeb193c0b7a1f541d.tar.bz2
mitmproxy-67368232c509a38087c2809aeb193c0b7a1f541d.zip
Merge pull request #3839 from naivekun/fix_for_issue_3833
Fix for issue 3833
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/net/http/test_headers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/mitmproxy/net/http/test_headers.py b/test/mitmproxy/net/http/test_headers.py
index 8fc8b027..5f208dcb 100644
--- a/test/mitmproxy/net/http/test_headers.py
+++ b/test/mitmproxy/net/http/test_headers.py
@@ -88,6 +88,8 @@ class TestHeaders:
headers = Headers(Host="foobarfoo.com", Accept="foo/bar")
replacements = headers.replace("foo", "bar", count=1)
assert replacements == 1
+ assert headers["Host"] == "barbarfoo.com"
+ assert headers["Accept"] == "foo/bar"
def test_parse_content_type():