Skip to content

Commit d9a8902

Browse files
bug #50577 [HttpClient] Remove final keyword on AsyncResponse (lyrixx)
This PR was merged into the 6.3 branch. Discussion ---------- [HttpClient] Remove final keyword on `AsyncResponse` | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | kind of | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | In symfony < 6.3, it was possible to override HTTP response headers. See this [blog post](https://jolicode.com/blog/aggressive-caching-with-symfony-http-client) for a use case With Symfony 6.3, this is not possible anymore. I created a reproducer here: https://github.com/lyrixx/test/tree/http-cache-pp And `@nicolas`-grekas came with another solution: lyrixx/test#11 So here we go! Commits ------- fbd6d18 [HttpClient] Remove final keyword on AsyncResponse
2 parents 2f9301c + fbd6d18 commit d9a8902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/Response/AsyncResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
* @author Nicolas Grekas <p@tchwork.com>
2929
*/
30-
final class AsyncResponse implements ResponseInterface, StreamableInterface
30+
class AsyncResponse implements ResponseInterface, StreamableInterface
3131
{
3232
use CommonResponseTrait;
3333

0 commit comments

Comments
 (0)