about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-01-10 00:10:29 +0100
committerEugen Rochko <eugen@zeonfederated.com>2020-01-10 00:10:29 +0100
commitc306978190032dd0097d2e48edace33569ddb072 (patch)
tree16d2558de22990bfeb6b5b0b86ad594713a74ca1 /app
parent817d4a93725aca884c638413334a0f08b88cc0ed (diff)
Use quality values in Accept field to explicitly prefer JSON over HTML (#12806)
Diffstat (limited to 'app')
-rw-r--r--app/services/fetch_resource_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fetch_resource_service.rb b/app/services/fetch_resource_service.rb
index 34382d279..abe7766d4 100644
--- a/app/services/fetch_resource_service.rb
+++ b/app/services/fetch_resource_service.rb
@@ -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?