From 9fe7f6e41559c2428b8106f540ed4fb830e586a3 Mon Sep 17 00:00:00 2001 From: octopus-prime Date: Wed, 28 Jun 2017 21:10:39 +0200 Subject: [PATCH] Fix HEAD response in file_service --- CHANGELOG.md | 1 + example/server-framework/file_service.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a809e3e..a1485bec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Version 70: * Add basic_parser header and body limits * Add parser::on_header to set a callback * Fix BEAST_FALLTHROUGH +* Fix HEAD response in file_service API Changes: diff --git a/example/server-framework/file_service.hpp b/example/server-framework/file_service.hpp index d21cf136..36571529 100644 --- a/example/server-framework/file_service.hpp +++ b/example/server-framework/file_service.hpp @@ -157,7 +157,7 @@ public: boost::filesystem::path full_path = root_ / rel_path; // Make sure the file is there - if(! boost::filesystem::exists(full_path)) + if(boost::filesystem::exists(full_path)) { // Send a HEAD response send(head(req, full_path));