mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
add content-type in pubsubhubhub request header (#2943)
* add content-type in pubsubhubhub request header * fix type
This commit is contained in:
parent
8c9116dc98
commit
2fba94b36e
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ class Pubsubhubbub::DeliveryWorker
|
||||||
return if DomainBlock.blocked?(host)
|
return if DomainBlock.blocked?(host)
|
||||||
|
|
||||||
headers['User-Agent'] = 'Mastodon/PubSubHubbub'
|
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['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?
|
headers['X-Hub-Signature'] = signature(subscription.secret, payload) if subscription.secret?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue