Skip to content

Commit fac1c09

Browse files
authored
Merge pull request #13 from mjcarroll/fix_no_return
Fix function without return value
2 parents 86fcf1f + 94e6f17 commit fac1c09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/http_reply.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ static bool serveFromFile(HttpReply::status_type status, const std::string& file
275275
reply_builder_.header("Content-Length", boost::lexical_cast<std::string>(content.size()));
276276
reply_builder_.write(connection);
277277
connection->write(content);
278+
return true;
278279
}
279280
bool FileHttpRequestHandler::operator()(const HttpRequest &request, boost::shared_ptr<HttpConnection> connection, const char* begin, const char* end)
280281
{
281-
serveFromFile(status_, filename_, headers_, connection);
282-
return true;
282+
return serveFromFile(status_, filename_, headers_, connection);
283283
}
284284

285285

0 commit comments

Comments
 (0)