Skip to content

Commit 91b6c53

Browse files
committed
Update HttpGateway.php
1 parent 4f8105c commit 91b6c53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Ssr/HttpGateway.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Exception;
66
use Illuminate\Support\Facades\Http;
7-
use Illuminate\Support\Str;
87

98
class HttpGateway implements Gateway
109
{
@@ -17,7 +16,7 @@ public function dispatch(array $page): ?Response
1716
return null;
1817
}
1918

20-
$url = str_replace('/render', '', Str::chopEnd(config('inertia.ssr.url', 'http://127.0.0.1:13714'), '/')).'/render';
19+
$url = str_replace('/render', '', rtrim(config('inertia.ssr.url', 'http://127.0.0.1:13714'), '/')) . '/render';
2120

2221
try {
2322
$response = Http::post($url, $page)->throw()->json();

0 commit comments

Comments
 (0)