]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Backward-compatiblity hack for PHP 5.4 installations.
authorRoland Haeder <roland@mxchange.org>
Sat, 4 Jul 2015 14:29:29 +0000 (16:29 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 29 Mar 2020 22:21:13 +0000 (00:21 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
lib/httpclient.php

index 184b2c2e13870c429c06281b1763857b7e13f259..b02952e70708d76f6709ad6c7e3a36fa1250fd21 100644 (file)
@@ -269,13 +269,16 @@ class HTTPClient extends HTTP_Request2
             $this->config['follow_redirects'] = $follow_redirects;
             return $this->doRequest($url, self::METHOD_HEAD, $headers);
         } catch (Exception $e) {
-            // Let the exception go on its merry way.
-            throw $e;
-        } finally {
             // reset to the old value
             $this->config['follow_redirects'] = $old_follow;
+
+            // Let the exception go on its merry way.
+            throw $e;
         }
         //we've either returned or thrown exception here
+
+        // reset to the old value
+        $this->config['follow_redirects'] = $old_follow;
     }
 
     /**