diff options
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class index cb3365d..cd0edb0 100644 --- a/it_url.class +++ b/it_url.class @@ -145,7 +145,7 @@ function parse_http_header($header) { foreach (explode("\n", trim($header)) as $line) { $line = trim($line); - if (preg_match('#^(HTTP\S+)\s(\d+)#', $line, $parts)) # Parse result code + if (preg_match('#^(HTTP)\S+\s(\d+)#', $line, $parts)) # Parse result code $this->headers[$parts[1]] = $this->result = $parts[2]; elseif (preg_match('#^([^:]+): (.*)$#', $line, $parts)) $this->headers[$parts[1]] = $parts[2]; |