From f4feef477b1a5a5cf5f3f79e6774bf047ad053b4 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 12 Jan 2016 14:31:14 +0100 Subject: [PATCH] Don't follow redirects on PuSH POST. --- plugins/OStatus/classes/HubSub.php | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5