summaryrefslogtreecommitdiff
path: root/src/http-header-glue.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-05-08 14:34:05 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-05-08 14:34:05 -0400
commit980554bc70b9cd458c80afaec23048a6eabebc9f (patch)
tree9ec9ce444fad5441411ec4f5da491f3482dc6d84 /src/http-header-glue.c
parentb2f4c007848cf98fe9b69da93e3d2d2f077d420e (diff)
downloadlighttpd-git-980554bc70b9cd458c80afaec23048a6eabebc9f.tar.gz
[core] simplify buffer_path_simplify()
Diffstat (limited to 'src/http-header-glue.c')
-rw-r--r--src/http-header-glue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http-header-glue.c b/src/http-header-glue.c
index 095345e9..3430e056 100644
--- a/src/http-header-glue.c
+++ b/src/http-header-glue.c
@@ -443,7 +443,7 @@ static void http_response_xsendfile (request_st * const r, buffer * const path,
}
return;
}
- buffer_path_simplify(path, path);
+ buffer_path_simplify(path);
if (r->conf.force_lowercase_filenames) {
buffer_to_lower(path);
}
@@ -525,7 +525,7 @@ static void http_response_xsendfile2(request_st * const r, const buffer * const
r->http_status = 502;
break;
}
- buffer_path_simplify(b, b);
+ buffer_path_simplify(b);
if (r->conf.force_lowercase_filenames) {
buffer_to_lower(b);
}