Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpClient] Body is not sent if empty after 6.4.19 #59994

Closed
@bettinz

Description

@bettinz

Symfony version(s) affected

6.4.19

Description

Hi, I've this piece of code:

$response =$this->client->request(Request::METHOD_POST,$this->url, ['headers' => ['Content-Type' =>'application/json','Authorization' =>'Bearer'.$token,            ],'body' => [],        ]);

Before 6.4.19 it was working. Now I see an error from the remote API that body is not sent.
I think it's related to#59763

How to reproduce

Update to 6.4.19, call a URL using POST and empty body

Possible Solution

No response

Additional Context

No response

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp