logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 2fba94b36eac65a368ec10f4c8c5808baa0179e7
parent: 8c9116dc98ab2328d00c1713d71f4b6792c387f5
Author: haoyayoi <st.hao.yayoi@gmail.com>
Date:   Tue,  9 May 2017 23:34:47 +0900

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

* add content-type in pubsubhubhub request header

* fix type

Diffstat:

Mapp/workers/pubsubhubbub/delivery_worker.rb1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/app/workers/pubsubhubbub/delivery_worker.rb b/app/workers/pubsubhubbub/delivery_worker.rb @@ -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?