forked from tastytea/libravatarserv
Bugfix: Heed d=404
This commit is contained in:
parent
f793a86af2
commit
9e6edf7179
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue