This commit is contained in:
Markus Birth 2022-02-14 02:48:15 +01:00
parent fc78f871ed
commit 8ebf5e6865
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -1149,9 +1149,9 @@ function serendipity_request_url($uri, $method = 'GET', $contenttype = null, $da
require_once S9Y_PEAR_PATH . 'HTTP/Request2.php';
$options = array('follow_redirects' => true, 'max_redirects' => 5);
if (is_array($extra_options)) {
foreach($extra_options AS $okey => $oval) {
foreach ($extra_options as $okey => $oval) {
$options[$okey] = $oval;
}
}
@ -1162,7 +1162,7 @@ function serendipity_request_url($uri, $method = 'GET', $contenttype = null, $da
$options['ssl_verify_peer'] = false;
}
switch(strtoupper($method)) {
switch (strtoupper($method)) {
case 'GET':
$http_method = HTTP_Request2::METHOD_GET;
break;