Fixes #143: Content-Length is now initialized to 0

This commit is contained in:
eidheim 2017-07-15 14:53:38 +02:00
commit d0e417cdd9

View file

@ -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);
}