Skip to content

Adds checking for parameters when application/x-www-form-urlencoded content type is used#14

Open
kolos wants to merge 1 commit intoesphome:mainfrom
kolos:master
Open

Adds checking for parameters when application/x-www-form-urlencoded content type is used#14
kolos wants to merge 1 commit intoesphome:mainfrom
kolos:master

Conversation

@kolos
Copy link

@kolos kolos commented Apr 3, 2023

Don't just trust the content type header, check for the content for parameters too.

This is useful when JSON is posted with the content type application/x-www-form-urlencoded.

It should not be happening, but there are buggy clients always using that header for POST...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant