Closed yannux closed 1 year ago
Hi,
In Request::getContentType() https://github.com/leafsphp/http/blob/cc03c75373a80987a00529df561c6ace47d9615c/src/Request.php#L361C9-L361C9
Request::getContentType()
Header key is CONTENTTYPE , but the good header name is with a dash - not an underscore **** : Content-Type
Content-Type
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
Thanks for catching this @yannux . It has been fixed and will be available in the next release.
Hi,
In
Request::getContentType()
https://github.com/leafsphp/http/blob/cc03c75373a80987a00529df561c6ace47d9615c/src/Request.php#L361C9-L361C9Header key is CONTENTTYPE , but the good header name is with a dash - not an underscore **** :
Content-Type
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type