diff --git a/interface/lib/classes/ispconfig_request.inc.php b/interface/lib/classes/ispconfig_request.inc.php index 479c11b5e0d0524f267392b4a8f75c85894c8b89..6d28a51b9b03847bf5f543ef6b03475dd58cff8d 100644 --- a/interface/lib/classes/ispconfig_request.inc.php +++ b/interface/lib/classes/ispconfig_request.inc.php @@ -250,6 +250,9 @@ abstract class ISPConfigRequest { foreach($tmpheaders as $cur) { if(preg_match('/^(\w+)\:\s*(.*)$/is', $cur, $matches)) { $headers["$matches[1]"] = trim($matches[2]); + } elseif(strpos($cur, ':') === false && substr($cur, 0, 5) === 'HTTP/') { + $headers['status'] = $header; + $headers['http_code'] = intval(preg_replace('/^HTTP\/\d+\.\d+\s+(\d+)\s+.*$/', '$1', $header)); } } return array($headers, $response);