Skip to content

Commit

Permalink
add support config_dict mapping aio-libs#219
Browse files Browse the repository at this point in the history
  • Loading branch information
Afanasev Pavel committed Jan 18, 2019
1 parent 14affbd commit 63a3265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp_cors/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CorsViewMixin(_PreflightHandler):
def get_request_config(cls, request, request_method):
try:
from . import APP_CONFIG_KEY
cors = request.app[APP_CONFIG_KEY]
cors = request.config_dict[APP_CONFIG_KEY]
except KeyError:
raise ValueError("aiohttp-cors is not configured.")

Expand Down

0 comments on commit 63a3265

Please sign in to comment.