From 906360f63f2afb4991dd2b38528798ad4efd0618 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 17 Sep 2015 15:16:33 +0200 Subject: code -> status_code, httpversion -> http_version --- libmproxy/protocol/http_replay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmproxy/protocol/http_replay.py') diff --git a/libmproxy/protocol/http_replay.py b/libmproxy/protocol/http_replay.py index 9e2a9735..00b0b82b 100644 --- a/libmproxy/protocol/http_replay.py +++ b/libmproxy/protocol/http_replay.py @@ -56,7 +56,7 @@ class RequestReplayThread(threading.Thread): connect_request, body_size_limit=self.config.body_size_limit ) - if resp.code != 200: + if resp.status_code != 200: raise ReplayException("Upstream server refuses CONNECT request") server.establish_ssl( self.config.clientcerts, -- cgit v1.2.3