8000 [HttpClient] HEAD request turns into PUT request since 7.2.0 · Issue #59043 · symfony/symfony · GitHub
[go: up one dir, main page]

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

      0