diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-19 18:17:30 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-22 15:30:51 +0200 |
commit | d62dbee0f6cd47b4cad1ee7cc731b413600c0add (patch) | |
tree | 9957a5f77ca521cc6ddaafd36200a4b3ae000596 /netlib | |
parent | 37a0cb858cda255bac8f06749a81859c82c5177f (diff) | |
download | mitmproxy-d62dbee0f6cd47b4cad1ee7cc731b413600c0add.tar.gz mitmproxy-d62dbee0f6cd47b4cad1ee7cc731b413600c0add.tar.bz2 mitmproxy-d62dbee0f6cd47b4cad1ee7cc731b413600c0add.zip |
rename content -> body
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/wsgi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/netlib/wsgi.py b/netlib/wsgi.py index ad43dc19..99afe00e 100644 --- a/netlib/wsgi.py +++ b/netlib/wsgi.py @@ -21,9 +21,9 @@ class Flow(object): class Request(object): - def __init__(self, scheme, method, path, headers, content): + def __init__(self, scheme, method, path, headers, body): self.scheme, self.method, self.path = scheme, method, path - self.headers, self.content = headers, content + self.headers, self.body = headers, body def date_time_string(): @@ -58,7 +58,7 @@ class WSGIAdaptor(object): environ = { 'wsgi.version': (1, 0), 'wsgi.url_scheme': flow.request.scheme, - 'wsgi.input': cStringIO.StringIO(flow.request.content), + 'wsgi.input': cStringIO.StringIO(flow.request.body or ""), 'wsgi.errors': errsoc, 'wsgi.multithread': True, 'wsgi.multiprocess': False, |