diff --git a/gunicorn/http/request.py b/gunicorn/http/request.py index 7daac567..53ed210a 100644 --- a/gunicorn/http/request.py +++ b/gunicorn/http/request.py @@ -7,6 +7,7 @@ import ctypes import logging import os import re +import socket import StringIO import sys from urllib import unquote diff --git a/gunicorn/http/tee.py b/gunicorn/http/tee.py index af2cdcdb..9567248f 100644 --- a/gunicorn/http/tee.py +++ b/gunicorn/http/tee.py @@ -40,6 +40,7 @@ class TeeInput(object): @property def len(self): if self._len: return self._len + if self._is_socket: pos = self.tmp.tell() while True: