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

Commit

Permalink
Fixes #143: Content-Length is now initialized to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
eidheim committed Jul 15, 2017
1 parent 291c316 commit d0e417c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_http.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d0e417c

Please sign in to comment.