From 45e69b4db25ccfd2d0a17d480474e9a0c8b4f9f7 Mon Sep 17 00:00:00 2001 From: Tijmen van Nesselrooij Date: Wed, 19 Jun 2019 20:07:39 +0200 Subject: [PATCH] Bugfix: notfound middleware if statement --- src/middleware/notfound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/middleware/notfound.cpp b/src/middleware/notfound.cpp index f12f4c7..f8e8abd 100644 --- a/src/middleware/notfound.cpp +++ b/src/middleware/notfound.cpp @@ -6,8 +6,8 @@ namespace Middleware { void NotFound::HandleRequest(Http::Request const & request, Http::Response & response) { - if (response.code != HttpResponse::Code::UNKNOWN && - (request.type == HttpRequest::Type::GET || request.type == HttpRequest::Type::HEAD)) + if (response.code != HttpResponse::Code::UNKNOWN || + !(request.type == HttpRequest::Type::GET || request.type == HttpRequest::Type::HEAD)) { return; }