From: Mikael Nordfeldth Date: Tue, 12 Jan 2016 13:31:14 +0000 (+0100) Subject: Don't follow redirects on PuSH POST. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f4feef477b1a5a5cf5f3f79e6774bf047ad053b4;p=quix0rs-gnu-social.git Don't follow redirects on PuSH POST. --- diff --git a/plugins/OStatus/classes/HubSub.php b/plugins/OStatus/classes/HubSub.php index 4d4b3e429b..4d63faac23 100644 --- a/plugins/OStatus/classes/HubSub.php +++ b/plugins/OStatus/classes/HubSub.php @@ -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);