nb: When we cannot send the file, we must respond with 404.
Change-Id: I5f11e7de4b0bfb6e44929b8317e4788d2cc81610
This commit is contained in:
parent
67293c8183
commit
be743c115d
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue