diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-16 03:36:18 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-26 07:33:42 -0400 |
commit | ea38287a4cb327d8a2c7e976eccd0d996dec98a7 (patch) | |
tree | c7c61fadbeb7c74de983681d6873af3a48e0dca5 /src/response.c | |
parent | 38c873585020ac35f04cd2a7a2a56c8ecd7b0064 (diff) | |
download | lighttpd-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.c | 3 |
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" |