brefphp / bref

Serverless PHP on AWS Lambda
https://bref.sh
MIT License
3.09k stars 367 forks source link

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

Open PaulMcITS opened 10 months ago

PaulMcITS commented 10 months ago

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?

mnapoli commented 9 months ago

That sounds reasonable to me 👍

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

PaulMcITS commented 9 months ago

I'll try to fit it in!