summaryrefslogtreecommitdiff
path: root/src/response.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-03-16 03:36:18 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-03-26 07:33:42 -0400
commitea38287a4cb327d8a2c7e976eccd0d996dec98a7 (patch)
treec7c61fadbeb7c74de983681d6873af3a48e0dca5 /src/response.c
parent38c873585020ac35f04cd2a7a2a56c8ecd7b0064 (diff)
downloadlighttpd-git-ea38287a4cb327d8a2c7e976eccd0d996dec98a7.tar.gz
[multiple] do not clear physical.path if finished
do not reset r->physical.path (unneeded) if returning HANDLER_FINISHED error handler will reset r->physical.path, if necessary
Diffstat (limited to 'src/response.c')
-rw-r--r--src/response.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/response.c b/src/response.c
index 721e47cd..87d03291 100644
--- a/src/response.c
+++ b/src/response.c
@@ -191,7 +191,6 @@ http_response_physical_path_error (request_st * const r, const int code, const c
log_error(r->conf.errh, __FILE__, __LINE__,
"URI : %s", r->uri.path.ptr);
}
- buffer_reset(&r->physical.path);
return HANDLER_FINISHED;
}
@@ -711,10 +710,10 @@ http_response_static_errdoc (request_st * const r)
CONST_BUF_LEN(content_type));
return;
}
+ buffer_clear(&r->physical.path);
}
/* build default error-page */
- buffer_reset(&r->physical.path);
buffer * const b = r->tmp_buf;
buffer_copy_string_len(b, CONST_STR_LEN(
"<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n"