mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 23:00:17 +00:00
fix for #188
This commit is contained in:
+2
-1
@@ -66,6 +66,7 @@ class API:
|
||||
enable_hsts=False,
|
||||
docs_route=None,
|
||||
cors=False,
|
||||
cors_params=DEFAULT_CORS_PARAMS
|
||||
allowed_hosts=None,
|
||||
):
|
||||
self.background = BackgroundQueue()
|
||||
@@ -88,7 +89,7 @@ class API:
|
||||
|
||||
self.hsts_enabled = enable_hsts
|
||||
self.cors = cors
|
||||
self.cors_params = DEFAULT_CORS_PARAMS
|
||||
self.cors_params = cors_params
|
||||
|
||||
if not allowed_hosts:
|
||||
# if not debug:
|
||||
|
||||
Reference in New Issue
Block a user