diff --git a/drf_httpsig/authentication.py b/drf_httpsig/authentication.py index caf604a..a592057 100644 --- a/drf_httpsig/authentication.py +++ b/drf_httpsig/authentication.py @@ -47,7 +47,7 @@ def authenticate_header(self, request): DRF sends this for unauthenticated responses if we're the primary authenticator. """ - h = " ".join(required_headers) + h = " ".join(self.required_headers) return 'Signature realm="%s",headers="%s"' % (self.www_authenticate_realm, h) def authenticate(self, request):