Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Bugfix for cloning issues with PendingRequest object #37596

Merged
merged 2 commits into from
Jun 4, 2021
Merged

[8.x] Bugfix for cloning issues with PendingRequest object #37596

merged 2 commits into from
Jun 4, 2021

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
2 participants