From a3ad66b4ab281fa6b95d7c05c6cd81f96f1fbca2 Mon Sep 17 00:00:00 2001 From: Owen Conti Date: Fri, 6 May 2022 10:54:48 -0600 Subject: [PATCH] fix: Add fallback for user agent value --- src/RequestDetails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RequestDetails.php b/src/RequestDetails.php index e2af025..5b40999 100644 --- a/src/RequestDetails.php +++ b/src/RequestDetails.php @@ -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'); } /**