diff options
Diffstat (limited to 'users/views')
-rw-r--r-- | users/views/activitypub.py | 2 | ||||
-rw-r--r-- | users/views/identity.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/users/views/activitypub.py b/users/views/activitypub.py index c3395a4..b155b08 100644 --- a/users/views/activitypub.py +++ b/users/views/activitypub.py @@ -38,7 +38,7 @@ class HostMeta(View): <XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0"> <Link rel="lrdd" template="https://%s/.well-known/webfinger?resource={uri}"/> </XRD>""" - % request.META["HTTP_HOST"], + % request.headers["host"], content_type="application/xml", ) 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 |