If size=0, return standard size(80px)

This commit is contained in:
tastytea 2018-11-29 13:43:56 +01:00
parent ec140aad01
commit 268ff7ab6f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.2)
project(libravatarserv
VERSION 0.6.3
VERSION 0.6.4
LANGUAGES CXX
)

View File

@ -72,9 +72,9 @@ const Request http::parse_request(const string &request)
{
size = 512;
}
if (size < 1)
if (size == 0)
{
size = 1;
size = 80;
}
}
{