bref icon indicating copy to clipboard operation
bref copied to clipboard

Body only parsed for POST requests, should we not also parse PUT+PATCH ?

Open PaulMcITS opened this issue 2 years ago • 2 comments

In Bref\Event\Http\Psr7Bridge , parseBodyAndUploadedFiles, there is a check that the event method is 'POST' before parsing the body. Should we not also look to parse the body of PUT and PATCH requests?

PaulMcITS avatar Nov 09 '23 11:11 PaulMcITS

That sounds reasonable to me 👍

Feel free to send a PR with tests if you have time.

mnapoli avatar Nov 09 '23 14:11 mnapoli

I'll try to fit it in!

PaulMcITS avatar Nov 09 '23 14:11 PaulMcITS