From d0e417cdd9d6138675835de620048cb6636766d1 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sat, 15 Jul 2017 14:53:38 +0200 Subject: [PATCH] Fixes #143: Content-Length is now initialized to 0 --- server_http.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_http.hpp b/server_http.hpp index 161381f..0a83c9b 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -500,7 +500,7 @@ namespace SimpleWeb { // If content, read that as well auto it = session->request->header.find("Content-Length"); if(it != session->request->header.end()) { - unsigned long long content_length; + unsigned long long content_length = 0; try { content_length = stoull(it->second); }