Skip to content

Commit

Permalink
fix: Add fallback for user agent value
Browse files Browse the repository at this point in the history
  • Loading branch information
owenconti committed May 6, 2022
1 parent bbf921d commit a3ad66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getStatusCode(): int
*/
public function getUserAgent(): string
{
return $this->request->header('User-Agent');
return $this->request->header('User-Agent', 'unknown');
}

/**
Expand Down

0 comments on commit a3ad66b

Please sign in to comment.