mirror of
https://github.com/zoffline/zwift-offline.git
synced 2026-08-02 17:08:14 -07:00
Fallback to local files
This commit is contained in:
+1
-1
@@ -127,9 +127,9 @@ class CDNHandler(SimpleHTTPRequestHandler):
|
||||
self.send_response(200)
|
||||
self.end_headers()
|
||||
self.wfile.write(PoolManager().request('GET', 'http://cdn.zwift.com%s' % self.path).data)
|
||||
return
|
||||
except Exception as exc:
|
||||
print('Error trying to proxy: %s' % repr(exc))
|
||||
return
|
||||
|
||||
SimpleHTTPRequestHandler.do_GET(self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user