Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit d0e417c

Browse files
committed
Fixes #143: Content-Length is now initialized to 0
1 parent 291c316 commit d0e417c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server_http.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ namespace SimpleWeb {
500500
// If content, read that as well
501501
auto it = session->request->header.find("Content-Length");
502502
if(it != session->request->header.end()) {
503-
unsigned long long content_length;
503+
unsigned long long content_length = 0;
504504
try {
505505
content_length = stoull(it->second);
506506
}

0 commit comments

Comments
 (0)