diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-19 18:17:09 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-22 15:30:34 +0200 |
commit | 11ac387df2a49d132a08648b6cb5121224924c9d (patch) | |
tree | a4d141d638211fa4f98d12edc7f07680b3f394a6 /libpathod/protocols/http.py | |
parent | 6d5a3da9294d5bc6758ded173729042573c9fe5f (diff) | |
download | mitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.tar.gz mitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.tar.bz2 mitmproxy-11ac387df2a49d132a08648b6cb5121224924c9d.zip |
rename content -> body
Diffstat (limited to 'libpathod/protocols/http.py')
-rw-r--r-- | libpathod/protocols/http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpathod/protocols/http.py b/libpathod/protocols/http.py index 43ef0799..d6017882 100644 --- a/libpathod/protocols/http.py +++ b/libpathod/protocols/http.py @@ -13,7 +13,7 @@ class HTTPProtocol: def make_error_response(self, reason, body): return language.http.make_error_response(reason, body) - def handle_http_app(self, method, path, headers, content, lg): + def handle_http_app(self, method, path, headers, body, lg): """ Handle a request to the built-in app. """ @@ -25,7 +25,7 @@ class HTTPProtocol: msg="Access denied: web interface disabled" ) lg("app: %s %s" % (method, path)) - req = wsgi.Request("http", method, path, headers, content) + req = wsgi.Request("http", method, path, headers, body) flow = wsgi.Flow(self.pathod_handler.address, req) sn = self.pathod_handler.connection.getsockname() a = wsgi.WSGIAdaptor( |