Coding standards
This commit is contained in:
parent
6f44476c56
commit
2c6db3ccac
1 changed files with 7 additions and 4 deletions
|
@ -95,6 +95,7 @@ class HTTPInputData
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = self::parseRawHeader($stream, $raw_headers, $boundary, $result);
|
$result = self::parseRawHeader($stream, $raw_headers, $boundary, $result);
|
||||||
|
|
||||||
$raw_headers = '';
|
$raw_headers = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,6 +116,7 @@ class HTTPInputData
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
list($name, $value) = explode(':', $header, 2);
|
list($name, $value) = explode(':', $header, 2);
|
||||||
|
|
||||||
$headers[strtolower($name)] = ltrim($value, ' ');
|
$headers[strtolower($name)] = ltrim($value, ' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,6 +147,7 @@ class HTTPInputData
|
||||||
|
|
||||||
if (isset($headers['content-type'])) {
|
if (isset($headers['content-type'])) {
|
||||||
$tmp = explode(';', $headers['content-type']);
|
$tmp = explode(';', $headers['content-type']);
|
||||||
|
|
||||||
$contentType = $tmp[0];
|
$contentType = $tmp[0];
|
||||||
} else {
|
} else {
|
||||||
$contentType = 'unknown';
|
$contentType = 'unknown';
|
||||||
|
|
Loading…
Reference in a new issue