Skip to content

Commit 94e6f17

Browse files
author
Michael Carroll
committed
Fix function without return value.
This fixes a segfault on GCC8.
1 parent 86fcf1f commit 94e6f17

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)