summaryrefslogtreecommitdiffstats
path: root/users/views/identity.py
diff options
context:
space:
mode:
authorPaolo Melchiorre2022-12-05 22:44:50 +0100
committerGitHub2022-12-05 14:44:50 -0700
commit22e25ac454b52686685d4d9f1241416cd35fafda (patch)
tree6796235a63e5e9dd549f29a640bbb2e6c0de17a0 /users/views/identity.py
parente3f1039a5f976af1c9874e79bcaac396b7b8b4f2 (diff)
downloadtakahe-22e25ac454b52686685d4d9f1241416cd35fafda.tar.gz
takahe-22e25ac454b52686685d4d9f1241416cd35fafda.tar.bz2
takahe-22e25ac454b52686685d4d9f1241416cd35fafda.zip
Add django-upgrade to pre-commit (#114)
Diffstat (limited to 'users/views/identity.py')
-rw-r--r--users/views/identity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/views/identity.py b/users/views/identity.py
index d98ce9d..27d2e4e 100644
--- a/users/views/identity.py
+++ b/users/views/identity.py
@@ -42,7 +42,7 @@ class ViewIdentity(ListView):
):
self.identity.transition_perform(IdentityStates.outdated)
# If they're coming in looking for JSON, they want the actor
- accept = request.META.get("HTTP_ACCEPT", "text/html").lower()
+ accept = request.headers.get("accept", "text/html").lower()
if (
"application/json" in accept
or "application/ld" in accept