mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 00:54:02 -05:00
Use quality values in Accept field to explicitly prefer JSON over HTML (#12806)
This commit is contained in:
parent
817d4a9372
commit
c306978190
@ -3,7 +3,7 @@
|
||||
class FetchResourceService < BaseService
|
||||
include JsonLdHelper
|
||||
|
||||
ACCEPT_HEADER = 'application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams", text/html'
|
||||
ACCEPT_HEADER = 'application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams", text/html;q=0.1'
|
||||
|
||||
def call(url)
|
||||
return if url.blank?
|
||||
|
Loading…
Reference in New Issue
Block a user