Skip to content

Commit 476a4ae

Browse files
ruiwashereRui Trigo
andauthored
fix: getUserAgent() doesn't handle the header properly because of further conversion. (#35)
Co-authored-by: Rui Trigo <[email protected]>
1 parent 6e25044 commit 476a4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ public static function getReferer(): ?string
725725
*/
726726
public static function getUserAgent(): ?string
727727
{
728-
return Headers::get('HTTP_USER_AGENT');
728+
return Headers::get('USER-AGENT');
729729
}
730730

731731
/**

0 commit comments

Comments
 (0)