mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add X-Powered-By header to builtin 404 page (#13092)
As requested by 30929c9a88 (r1434156785)
.
This commit is contained in:
parent
59c38969de
commit
8876639d11
3 changed files with 8 additions and 0 deletions
|
@ -2065,6 +2065,7 @@ static zend_result php_cli_server_send_error_page(php_cli_server *server, php_cl
|
|||
goto fail;
|
||||
}
|
||||
append_essential_headers(&buffer, client, 1, NULL);
|
||||
smart_str_appends_ex(&buffer, SAPI_PHP_VERSION_HEADER "\r\n", 1);
|
||||
smart_str_appends_ex(&buffer, "Content-Type: text/html; charset=UTF-8\r\n", 1);
|
||||
smart_str_appends_ex(&buffer, "Content-Length: ", 1);
|
||||
smart_str_append_unsigned_ex(&buffer, php_cli_server_buffer_size(&client->content_sender.buffer), 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue