From 268ff7ab6f227266b24d6a14616bbe4458fabaed Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 29 Nov 2018 13:43:56 +0100 Subject: [PATCH] If size=0, return standard size(80px) --- CMakeLists.txt | 2 +- src/http.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1244fe..35e9f3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.2) project(libravatarserv - VERSION 0.6.3 + VERSION 0.6.4 LANGUAGES CXX ) diff --git a/src/http.cpp b/src/http.cpp index a7a9add..f3af582 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -72,9 +72,9 @@ const Request http::parse_request(const string &request) { size = 512; } - if (size < 1) + if (size == 0) { - size = 1; + size = 80; } } {