1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-10 14:23:00 +03:00

document_root now fast option

This commit is contained in:
Lammert Bies
2016-12-28 22:15:15 +01:00
parent 4a2771cc1a
commit 76ac8e6a13
15 changed files with 101 additions and 54 deletions

View File

@@ -270,7 +270,7 @@ no_callback_resource:
* 6.2.1. thus, the server must have real files
*/
if ( conn->ctx->cfg[DOCUMENT_ROOT] == NULL ) {
if ( conn->ctx->document_root == NULL ) {
/*
* This server does not have any real files, thus the
@@ -391,7 +391,7 @@ no_callback_resource:
* by a script file. Thus, a DOCUMENT_ROOT must exist.
*/
if ( conn->ctx->cfg[DOCUMENT_ROOT] == NULL ) {
if ( conn->ctx->document_root == NULL ) {
XX_httplib_send_http_error( conn, 404, "%s", "Not Found" );
return;