about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorhaoyayoi <st.hao.yayoi@gmail.com>2017-05-09 23:34:47 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-09 16:34:47 +0200
commit2fba94b36eac65a368ec10f4c8c5808baa0179e7 (patch)
treee7d7874c74588c1b85c4d9b3a0fe326da5497bee /app/workers
parent8c9116dc98ab2328d00c1713d71f4b6792c387f5 (diff)
add content-type in pubsubhubhub request header (#2943)
* add content-type in pubsubhubhub request header

* fix type
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/pubsubhubbub/delivery_worker.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/workers/pubsubhubbub/delivery_worker.rb b/app/workers/pubsubhubbub/delivery_worker.rb
index 511ae14b3..0e57a74b6 100644
--- 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?