Welcome Guest, Not a member yet? Register   Sign In
Prevent Content-Type at Http-Status-Code 204
#1

Hi there,

it is possible to prevent/remove the default Content-Type Header when using the HTTP\Response class?

The Http-Status-Code 204 (no content) should send without a Content-Type Header.

greetings
david
Reply
#2

See this from the docs.
Check out my blog: https://lagbaja.dev
Reply
#3

Yeah, but after removing the Content-Type Header with removeHeader('Content-Type') the default Content-Type Header ('text/html') is set. Unfortunaly it is hardcoded within the HTTP/Response constructor.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB