amphp / http-client

An advanced async HTTP client library for PHP, enabling efficient, non-blocking, and concurrent requests and responses.
https://amphp.org/http-client
MIT License
702 stars 67 forks source link

Clone request before sending in FollowRedirects #336

Closed trowski closed 1 year ago

trowski commented 1 year ago

This clones the request before sending on the client to avoid copying values set by subsequent interceptors.

Fixes #332.

Bilge commented 1 year ago

I think this case needs a test.

kelunik commented 1 year ago

Good idea, do you have time to contribute one?

Bilge commented 1 year ago

No 🙂

kelunik commented 1 year ago

You might stay our test then. 😆

Bilge commented 1 year ago

OK but this still needs a tag, at least.