diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-27 16:24:22 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-27 16:24:22 +1200 |
commit | 5d4c7829bfdda8c0a5fd28896fd925d63221b929 (patch) | |
tree | 5eec4d98fa2e1047bc776cea0703f33e1d95055b /netlib/http.py | |
parent | abe335e57dd2871a6ea6cfe2559f9b29ae0c33bb (diff) | |
download | mitmproxy-5d4c7829bfdda8c0a5fd28896fd925d63221b929.tar.gz mitmproxy-5d4c7829bfdda8c0a5fd28896fd925d63221b929.tar.bz2 mitmproxy-5d4c7829bfdda8c0a5fd28896fd925d63221b929.zip |
Minor refactoring.
Diffstat (limited to 'netlib/http.py')
-rw-r--r-- | netlib/http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/netlib/http.py b/netlib/http.py index 150995dd..9c72c601 100644 --- a/netlib/http.py +++ b/netlib/http.py @@ -248,6 +248,9 @@ def read_http_body_response(rfile, headers, all, limit): def read_response(rfile, method, body_size_limit): + """ + Return an (httpversion, code, msg, headers, content) tuple. + """ line = rfile.readline() if line == "\r\n" or line == "\n": # Possible leftover from previous message line = rfile.readline() |