]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't follow redirects on PuSH POST.
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 12 Jan 2016 13:31:14 +0000 (14:31 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 12 Jan 2016 13:32:28 +0000 (14:32 +0100)
plugins/OStatus/classes/HubSub.php

index 4d4b3e429bfdf2df6c0f11af441f04eaf52f47de..4d63faac23a5b883c97d35df7b5f81ef975d701a 100644 (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);