Closed jeis4n closed 1 year ago
This is another way to validate it, but it needs to be tested (including performance):
preg_match('/application\/json|multipart\/form-data/i', Headers::get('Content-Type'))
Hey @jeis4n thanks for opening this. Looks good to me, but I'll check the preg_match approach too.
With pleasure!
If Content-Type is 'application/json; charset=UTF-8' then it doesn't recognize it as json.
Description
Related Issue