We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf01ea commit da24adcCopy full SHA for da24adc
src/Analyser/Header.php
@@ -139,9 +139,11 @@ private function additionalUserAgent($ua)
139
140
private function getHeader($h)
141
{
142
+ /* Find the header that matches */
143
foreach ($this->headers as $k => $v) {
144
if (strtolower($h) == strtolower($k)) {
- return $v;
145
+ /* And return the first 1024 bytes */
146
+ return substr($v, 0, 1024);
147
}
148
149
0 commit comments