Skip to content

Conversation

lukeraymonddowning
Copy link
Contributor

Fixes #37594

This was caused by the closures registered in the beforeSendingCallbacks referencing the original instance in memory. These callbacks now receive the current instance as the third parameter, which allows them to set the provided request and cookies on the correct object instance.

…est object, allowing them to work with cloned PendingRequests.
@taylorotwell taylorotwell merged commit 571d705 into laravel:8.x Jun 4, 2021
@lukeraymonddowning lukeraymonddowning deleted the http-client-events-bugfix branch June 4, 2021 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[8.45.1] Cloned PendingRequest raises a "($request) must be of type Illuminate\Http\Client\Request, null given" error
2 participants