forked from boostorg/beast
Fix HEAD response in file_service
This commit is contained in:
committed by
Vinnie Falco
parent
0ab9975751
commit
9fe7f6e415
@@ -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:
|
||||||
|
|
||||||
|
@@ -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));
|
||||||
|
Reference in New Issue
Block a user