ソースを参照

Use quality values in Accept field to explicitly prefer JSON over HTML (#12806)

master^2
ThibG 4年前
committed by Eugen Rochko
コミット
c306978190
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      app/services/fetch_resource_service.rb

+ 1
- 1
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?


読み込み中…
キャンセル
保存