Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpClient] HEAD request turns into PUT request since 7.2.0 #59043

Closed
@dmaicher

Description

@dmaicher

Symfony version(s) affected

7.2.0

Description

Just upgraded one project to Symfony 7.2.0 and noticed an error with a Psr18Client wrapping a CurlHttpClient

The HEAD request actually turns into a PUT request.

How to reproduce

$response = (new Psr18Client(new CurlHttpClient()))
    ->sendRequest(new Request('HEAD', 'https://www.postb.in/1732890887317-...'));

image

Possible Solution

No response

Additional Context

This seems to be caused by #58856

Now the CurlHttpClient is sending a body as it seems:

cc @KurtThiemann

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions