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

Appearance settings

No way to override the Content-Type header in Browserkit Request #20042

Copy link
Copy link
Closed
@zio-mitch

Description

@zio-mitch
Issue body actions

Making a request with the method request() will always override the content-type header, with application/x-www-form-urlencoded.

Example to reproduce the problem

 $client = static::createClient();
 $headers['content-type'] = 'some.other valid IANA';
 $client->request('POST', '/api/test', [], [], $headers, 'HELO');

the request sent to the controller will contain application/x--www-form-urlencoded

Also trying with:

$headers['HTTP_content-type'] = 'some.other valid IANA' same result

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.