diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-06-18 16:16:40 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-06-18 16:16:40 +1200 |
commit | 274d0333f8bbd0bf88214747beeead991f36b72a (patch) | |
tree | 590d684d8ab9277cab441ffb07a79cc36412e4c7 /test/test_pathod.py | |
parent | 78cb5fe573ffcc06e700bb2193f9aef212be267e (diff) | |
parent | 408b4ffef0a784bea7ec08c252e757bca6e28134 (diff) | |
download | mitmproxy-274d0333f8bbd0bf88214747beeead991f36b72a.tar.gz mitmproxy-274d0333f8bbd0bf88214747beeead991f36b72a.tar.bz2 mitmproxy-274d0333f8bbd0bf88214747beeead991f36b72a.zip |
Merge pull request #27 from Kriechi/http2-wip
HTTP/2: add initial support
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r-- | test/test_pathod.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index f85ef38d..1a3a5004 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -1,7 +1,7 @@ import sys import cStringIO from libpathod import pathod, version -from netlib import tcp, http +from netlib import tcp, http, http2 import tutils @@ -269,3 +269,15 @@ class TestDaemonSSL(CommonTests): r, _ = self.pathoc([r"get:/p/202"]) assert r[0].status_code == 202 assert self.d.last_log()["cipher"][1] > 0 + +class TestHTTP2(tutils.DaemonTests): + force_http2 = True + ssl = True + noweb = True + noapi = True + nohang = True + + def test_http2(self): + r, _ = self.pathoc(["GET:/"], ssl=True, use_http2=True) + print(r) + assert r[0].status_code == "800" |