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
Expected:
I expected the reponse->setHeaders to merge with what was already in headers.
Actual :
I had response->setContentType('application/json') before response->setHeaders. The result meant I was losing the desired content type and it was reverting back to text/html.
Reponse
setHeaders
is scrubbingsetContentType
.Expected and Actual Behavior
Expected:
I expected the
reponse->setHeaders
to merge with what was already in headers.Actual :
I had
response->setContentType('application/json')
beforeresponse->setHeaders
. The result meant I was losing the desired content type and it was reverting back totext/html
.Working:
Not working:
Details
The text was updated successfully, but these errors were encountered: