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
|
||||
|
||||
def create_http_handler(handler):
|
||||
static_cache = {} # noqa
|
||||
static_cache = {}
|
||||
@wraps(handler)
|
||||
def wrapper(*args, **kwargs):
|
||||
ans = HTTPConnection(*args, **kwargs)
|
||||
ans.request_handler = handler
|
||||
ans.static_cache = {}
|
||||
ans.static_cache = static_cache
|
||||
return ans
|
||||
return wrapper
|
||||
|
Loading…
x
Reference in New Issue
Block a user