Bugfix: Heed d=404

This commit is contained in:
tastytea 2018-11-27 04:54:20 +01:00
parent f793a86af2
commit 9e6edf7179
Signed by untrusted user: 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) cmake_minimum_required (VERSION 3.2)
project(libravatarserv project(libravatarserv
VERSION 0.4.1 VERSION 0.4.2
LANGUAGES CXX LANGUAGES CXX
) )

View File

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