You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
ResponseTrait -> respondNoContent should not return Content-Type header.
This makes postman trigger the bug parse error since content-type is text/html although it's none
CodeIgniter 4 version
4 stable
Expected behavior, and steps to reproduce if appropriate
ResponseTrait -> respondNoContent should not return Content-Type header.
Context
OS: Windows 10
Web server php builtin webserver
PHP version 7.2
The text was updated successfully, but these errors were encountered:
fauzanelka
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Jun 11, 2020
for now I'm using $this->response->setStatusCode(204)->removeHeader('Content-Type') to fix it.
fauzanelka
changed the title
Bug:
Bug: API\ResponseTrait::respondNoContent return
Jun 11, 2020
fauzanelka
changed the title
Bug: API\ResponseTrait::respondNoContent return
Bug: API\ResponseTrait::respondNoContent return content-type header
Jun 11, 2020
This is weird, it turn's out that Postman have a bug in cookie interceptor that trigger the parse error. Hence, this is not related to codeigniter bug, I'll close this issu.
Describe the bug
ResponseTrait -> respondNoContent should not return Content-Type header.
This makes postman trigger the bug parse error since content-type is text/html although it's none
CodeIgniter 4 version
4 stable
Expected behavior, and steps to reproduce if appropriate
ResponseTrait -> respondNoContent should not return Content-Type header.
Context
The text was updated successfully, but these errors were encountered: