Don't follow redirects on PuSH POST.

This commit is contained in:
Mikael Nordfeldth 2016-01-12 14:31:14 +01:00
parent b696fb4eb1
commit f4feef477b

View File

@ -263,6 +263,7 @@ class HubSub extends Managed_DataObject
common_log(LOG_INFO, "About to push feed to $this->callback for {$this->getTopic()}, HMAC $hmac");
$request = new HTTPClient();
$request->setConfig(array('follow_redirects' => false));
$request->setBody($atom);
try {
$response = $request->post($this->callback, $headers);