From 49d340ce2b354ba4f4481759b9cf23d826a28b3f Mon Sep 17 00:00:00 2001 From: benoitc Date: Sat, 27 Feb 2010 17:32:05 +0100 Subject: [PATCH] fix import --- gunicorn/http/request.py | 1 + gunicorn/http/tee.py | 1 + 2 files changed, 2 insertions(+) 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: