From 0a5715ba83cddb45e069cfbb145c37590cf4bff9 Mon Sep 17 00:00:00 2001 From: Erwin Junge Date: Sun, 14 Apr 2019 14:34:48 +0200 Subject: [PATCH] Fix syntax error for required headers --- drf_httpsig/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):