This commit is contained in:
Kovid Goyal 2015-06-02 13:46:29 +05:30
parent 113cc0cc0c
commit 1b745365f4

View File

@ -544,11 +544,11 @@ class HTTPConnection(HTTPRequest):
return output return output
def create_http_handler(handler): def create_http_handler(handler):
static_cache = {} # noqa static_cache = {}
@wraps(handler) @wraps(handler)
def wrapper(*args, **kwargs): def wrapper(*args, **kwargs):
ans = HTTPConnection(*args, **kwargs) ans = HTTPConnection(*args, **kwargs)
ans.request_handler = handler ans.request_handler = handler
ans.static_cache = {} ans.static_cache = static_cache
return ans return ans
return wrapper return wrapper