Fixes #143: Content-Length is now initialized to 0
This commit is contained in:
parent
291c316a28
commit
d0e417cdd9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue