Mercurial Hosting > luan
changeset 1643:8d751af51b9d
fix not_found_hander
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 02 Jan 2022 00:42:58 -0700 |
parents | 0a46dbd36208 |
children | 5c676385284b |
files | src/luan/modules/http/LuanHandler.java |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/modules/http/LuanHandler.java Wed Dec 22 14:30:26 2021 -0700 +++ b/src/luan/modules/http/LuanHandler.java Sun Jan 02 00:42:58 2022 -0700 @@ -115,9 +115,10 @@ @Override public Response handle(Request request) { if( isDisabled ) return null; - if( request.path.endsWith("/") ) + boolean notFound = request.headers.containsKey(NOT_FOUND); + if( !notFound && request.path.endsWith("/") ) return null; - return handle( request, request.headers.containsKey(NOT_FOUND) ); + return handle( request, notFound ); } private Response handle(Request request,boolean notFound) {