Fix HEAD response in file_service

This commit is contained in:
octopus-prime
2017-06-28 21:10:39 +02:00
committed by Vinnie Falco
parent 0ab9975751
commit 9fe7f6e415
2 changed files with 2 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ Version 70:
* Add basic_parser header and body limits * Add basic_parser header and body limits
* Add parser::on_header to set a callback * Add parser::on_header to set a callback
* Fix BEAST_FALLTHROUGH * Fix BEAST_FALLTHROUGH
* Fix HEAD response in file_service
API Changes: API Changes:

View File

@@ -157,7 +157,7 @@ public:
boost::filesystem::path full_path = root_ / rel_path; boost::filesystem::path full_path = root_ / rel_path;
// Make sure the file is there // Make sure the file is there
if(! boost::filesystem::exists(full_path)) if(boost::filesystem::exists(full_path))
{ {
// Send a HEAD response // Send a HEAD response
send(head(req, full_path)); send(head(req, full_path));