Skip to content

Commit

Permalink
do not execute beforeSending callbacks twice (#37116)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigopedra committed Apr 26, 2021
1 parent b77e312 commit fe54c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Client/PendingRequest.php
Expand Up @@ -819,7 +819,7 @@ public function buildRecorderHandler()
{
return function ($handler) {
return function ($request, $options) use ($handler) {
$promise = $handler($this->runBeforeSendingCallbacks($request, $options), $options);
$promise = $handler($request, $options);

return $promise->then(function ($response) use ($request, $options) {
optional($this->factory)->recordRequestResponsePair(
Expand Down

0 comments on commit fe54c3f

Please sign in to comment.