Addressing issues where various response types don't have a headers attr
1 files changed, 1 insertions(+), 1 deletions(-)

M nofloc/middleware.py
M nofloc/middleware.py +1 -1
@@ 4,5 4,5 @@ class NoFLoCMiddleware:
 
     def __call__(self, request):
         response = self.get_response(request)
-        response.headers["Permissions-Policy"] = "interest-cohort=()"
+        response["Permissions-Policy"] = "interest-cohort=()"
         return response