Skip to content

Commit

Permalink
as2: drop quality values from CONNEG_HEADERS
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Feb 27, 2024
1 parent 21eb248 commit cff63b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion granary/as2.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
CONTENT_TYPE_LD = 'application/ld+json'
CONTENT_TYPES = (CONTENT_TYPE, CONTENT_TYPE_LD)
CONTENT_TYPE_LD_PROFILE = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept
CONNEG_HEADERS = {
'Accept': f'{CONTENT_TYPE}; q=0.9, {CONTENT_TYPE_LD_PROFILE}; q=0.8',
'Accept': f'{CONTENT_TYPE}, {CONTENT_TYPE_LD_PROFILE}',
}
CONTEXT = 'https://www.w3.org/ns/activitystreams'

Expand Down

0 comments on commit cff63b3

Please sign in to comment.