mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
...
This commit is contained in:
parent
113cc0cc0c
commit
1b745365f4
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user