Skip to content

Commit f75e26d

Browse files
committed
Fix body size type problem
1 parent 892557a commit f75e26d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/Http.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ void Http::processFile(std::string uri) {
237237
// Load the file
238238
_response.init(PROTOCOL "/" HTTP_VERSION, "200", "OK");
239239
_response.setBody(new std::ifstream(file.getPath().c_str()));
240-
int bodySize = file.size();
240+
long int bodySize = file.size();
241241
if (_response.getBody()->good() == false || bodySize < 0)
242242
return processError("500", "Internal Server Error");
243243
_response.setHeader("Content-Length", toString(bodySize));

0 commit comments

Comments
 (0)