Skip to content

Commit

Permalink
Access at setup
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed May 8, 2019
1 parent 779d9d0 commit ff8437d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django_feature_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
class FeaturePolicyMiddleware:
def __init__(self, get_response):
self.get_response = get_response
self.header_value # Access at setup so ImproperlyConfigured can be raised
receiver(setting_changed)(self.clear_header_value)

def __call__(self, request):
Expand Down

0 comments on commit ff8437d

Please sign in to comment.