News for hackers. Stuff that matters.
Re:HTTP 2.0 by ancarda on Tuesday July 09, 2013 @12:27PM (#6013467)
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?
Re:HTTP 2.0 by iso-8859-1 on Tuesday July 09, 2013 @05:36PM (#6015707)
Just use

    header("Status: 400 Bad Request");