Skip to content

Commit

Permalink
Merge pull request #95 from Treblle/fix/server-hostname
Browse files Browse the repository at this point in the history
fix: using server hostname over request hostname
  • Loading branch information
JustSteveKing authored Sep 26, 2024
2 parents c2e4ff2 + 191a13d commit 765048f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Factories/DataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Route;
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
use Throwable;
use Treblle\Utils\DataObjects\Data;
Expand Down Expand Up @@ -71,7 +70,7 @@ public function make(Request $request, JsonResponse|Response|SymfonyResponse $re
php_uname('m'),
),
(string) $request->server('HTTP_ACCEPT_ENCODING'),
$request->host(),
(string) $request->server('SERVER_NAME', gethostname()),
),
new Language(
'php',
Expand Down

0 comments on commit 765048f

Please sign in to comment.