<div dir="ltr">On 29 September 2015 at 12:25, Francis Daly <<a href="mailto:francis@daoine.org">francis@daoine.org</a>> wrote:<br>> On Tue, Sep 29, 2015 at 01:06:50AM +0300, Aapo Talvensaari wrote:<br>> > It just sets the status code. It is normal PHP 5.3 code [1]. I might need<br>> > to compile nginx by hand to get more debug info.<br>><br>> For what it's worth:<br>><br>> when I test with a php 5.1.6 and a php 5.3.3,<br>><br>>   header(':', true, 403);<br>><br>> Using<br>><br>>   header("HTTP/1.1 403 Whatever");<br>><br>> sets the status code and does not add the dubious header.<br><br><div><br></div><div>Thanks. I know this is not probably a best way to set it (and in this case I can</div><div>change it, but it seems like this may cause some problems with user code.</div><div>See, the browsers accept it, the Nginx HTTP accepts it, Nginx HTTPS accepts</div><div>it, and even Nginx SPDY accepts it. Only Nginx HTTP/2 will not accept it. And</div><div>by accepting I mean, browsers and other Nginx protocols give the correct status</div><div>code as well.</div><div><br></div><div>Thanks for debugging this furher. I think everyone now has the knowledge of</div><div>what is going on.</div><div><br></div><div>Is this a bug or a feature? Because it might break user code running on Nginx,</div><div>I might call it a bug. Because it breaks only when these weird headers are in</div><div>place I might call it a feature.</div><div><br></div><div><br></div><div>Regards</div><div>Aapo</div></div>