-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Closed
Description
- Laravel Version: 9.39.0
- PHP Version: 8.0.24
- Database Driver & Version:8.0.31
Description:
I am trying to execute the sample code provided here https://laravel.com/docs/9.x/http-client#guzzle-middleware
$response = Http::withMiddleware(
GuzzleHttp\Middleware::mapRequest(function (Psr\Http\Message\RequestInterface $request) {
$request->withHeader('X-Example', 'Value');
return $request;
})
)->get('https://example.com');But when I check the request inside of laravel telescope it seems that the request is not getting modified using this middleware.
I even tried changing the request method to post but that also did not seem to work
Metadata
Metadata
Assignees
Labels
No labels

