add content-type in pubsubhubhub request header (#2943)

* add content-type in pubsubhubhub request header

* fix type
th-downstream
haoyayoi 8 years ago committed by Eugen Rochko
parent 53f6534b66
commit a5ad348182

@ -18,6 +18,7 @@ class Pubsubhubbub::DeliveryWorker
return if DomainBlock.blocked?(host)
headers['User-Agent'] = 'Mastodon/PubSubHubbub'
headers['Content-Type'] = 'application/atom+xml'
headers['Link'] = LinkHeader.new([[api_push_url, [%w(rel hub)]], [account_url(subscription.account, format: :atom), [%w(rel self)]]]).to_s
headers['X-Hub-Signature'] = signature(subscription.secret, payload) if subscription.secret?

Loading…
Cancel
Save