Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/rsandrea/zf2 into hotfix/…
Browse files Browse the repository at this point in the history
…http-user-agent

Conflicts:
	library/Zend/Http/Header/UserAgent.php
  • Loading branch information
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Header/UserAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function fromString($headerLine)
list($name, $value) = preg_split('#: #', $headerLine, 2);

// check to ensure proper header type for this factory
if (strtolower($name) !== 'user-agent') {
if (str_replace(array('_', ' ', '.'), '-', strtolower($name)) !== 'user-agent') {
throw new Exception\InvalidArgumentException('Invalid header line for User-Agent string: "' . $name . '"');
}

Expand Down

0 comments on commit 9809630

Please sign in to comment.