Skip to content

Commit da24adc

Browse files
committed
Limit the headers we are analysing
1 parent 8bf01ea commit da24adc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Analyser/Header.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ private function additionalUserAgent($ua)
139139

140140
private function getHeader($h)
141141
{
142+
/* Find the header that matches */
142143
foreach ($this->headers as $k => $v) {
143144
if (strtolower($h) == strtolower($k)) {
144-
return $v;
145+
/* And return the first 1024 bytes */
146+
return substr($v, 0, 1024);
145147
}
146148
}
147149
}

0 commit comments

Comments
 (0)