nb: When we cannot send the file, we must respond with 404.

Change-Id: I5f11e7de4b0bfb6e44929b8317e4788d2cc81610
This commit is contained in:
Jan Holesovsky 2017-03-01 13:41:04 +01:00
parent 67293c8183
commit be743c115d

View file

@ -586,6 +586,7 @@ namespace HttpHelper
if (stat(path.c_str(), &st) != 0)
{
LOG_WRN("Failed to stat [" << path << "]. File will not be sent.");
throw Poco::FileNotFoundException("Failed to stat [" + path + "]. File will not be sent.");
return;
}