Skip to content

Conversation

@egorrishe
Copy link
Contributor

@egorrishe egorrishe commented Jul 13, 2021

Q A
Is bugfix? no
New feature? yes
Breaks BC? no
Tests pass? yes

Implementing API integration, I faced with case when API works properly only with header:
Content-Type: application/x-www-form-urlencoded
But default header (with charset) works unexpectedly. I.e. :
Content-Type: application/x-www-form-urlencoded; charset=UTF-8

So I suggest to add possibility to skip charset.

Of course, it's possible to achieve the same goal and without this PR.
In my project I've override UrlEncodedFormatter with custom class and used it.

But such possibility from the box is much clearer.
Besides that it's really tiny PR.

@samdark samdark merged commit 56c0936 into yiisoft:master Jul 26, 2021
@samdark
Copy link
Member

samdark commented Jul 26, 2021

Thanks.

@samdark samdark added this to the 2.0.14 milestone Jul 26, 2021
@samdark samdark added the type:enhancement Enhancement label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:enhancement Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants