There's no reason to parse "http_status_line"; the PHP interpreter already does this. If the line contains a valid status code, it's assigned to "http_response_code". This also fixes invalid status line handling, where the nxt_int_parse() function returned -1; it was cast to unsigned, yielding response code 65535.
5 lines
73 B
PHP
5 lines
73 B
PHP
<?php
|
|
header($_SERVER['HTTP_X_HEADER']);
|
|
header('Content-Length: 0');
|
|
?>
|