We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 892557a commit f75e26dCopy full SHA for f75e26d
src/http/Http.cpp
@@ -237,7 +237,7 @@ void Http::processFile(std::string uri) {
237
// Load the file
238
_response.init(PROTOCOL "/" HTTP_VERSION, "200", "OK");
239
_response.setBody(new std::ifstream(file.getPath().c_str()));
240
- int bodySize = file.size();
+ long int bodySize = file.size();
241
if (_response.getBody()->good() == false || bodySize < 0)
242
return processError("500", "Internal Server Error");
243
_response.setHeader("Content-Length", toString(bodySize));
0 commit comments