diff options
| author | Aldo Cortesi <aldo@corte.si> | 2014-01-04 14:48:12 -0800 |
|---|---|---|
| committer | Aldo Cortesi <aldo@corte.si> | 2014-01-04 14:48:12 -0800 |
| commit | a9f8dcf755d2855f884c1b1f3f0bd52340efdc83 (patch) | |
| tree | 448651d05f2f8bbda4b5d19a00af1013f6588365 /libpathod/pathod.py | |
| parent | 467ef0c02a6351539abdc81e4c9f15b7c583d5dc (diff) | |
| parent | 210e0c891e040d5dd21e361e6f17dbce3dbdde7f (diff) | |
| download | mitmproxy-a9f8dcf755d2855f884c1b1f3f0bd52340efdc83.tar.gz mitmproxy-a9f8dcf755d2855f884c1b1f3f0bd52340efdc83.tar.bz2 mitmproxy-a9f8dcf755d2855f884c1b1f3f0bd52340efdc83.zip | |
Merge pull request #11 from mitmproxy/refactor_read_http_body
always return Content-Length: 0 if r is not set
Diffstat (limited to 'libpathod/pathod.py')
| -rw-r--r-- | libpathod/pathod.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py index 5fc1fd55..d925de24 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -123,8 +123,8 @@ class PathodHandler(tcp.BaseHandler): ) try: - content = http.read_http_body_request( - self.rfile, self.wfile, headers, httpversion, None + content = http.read_http_body( + self.rfile, headers, None, True ) except http.HttpError, s: s = str(s) |
