Bugfix: Heed d=404
the build was successful Details

This commit is contained in:
tastytea 2018-11-27 04:54:20 +01:00
parent f793a86af2
commit 9e6edf7179
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.2)
project(libravatarserv
VERSION 0.4.1
VERSION 0.4.2
LANGUAGES CXX
)

View File

@ -62,7 +62,7 @@ int main()
else
{
cerr << "Error " << std::to_string(image.error) << ": Could not open file.\n";
if (avatar.fallback.empty())
if (avatar.fallback.empty() || avatar.fallback == "404")
{
cout << "Status: 404 Not Found\n\n";
}