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 <ruitrigo09@gmail.com>
1 parent 6e25044 commit 476a4ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)