5 ms·
Hmm... I have a few scripts that do something like: header($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request'); Since I'm using SERVER_PROTOCOL, if I upgrad
by ancarda 13y ago
Hmm... I have a few scripts that do something like:
header($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
Since I'm using SERVER_PROTOCOL, if I upgraded Nginx and it started to send HTTP/2.0 traffic to the server, would I need to rewrite this line? How would I send a specific status code using the new binary protocol?
- iso-8859-1 13y agoJust use header("Status: 400 Bad Request");