Added SimpleWeb::error, and simplified request size checks on server

This commit is contained in:
eidheim 2019-06-23 20:18:28 +02:00
commit 31e6819b42
6 changed files with 39 additions and 38 deletions

View file

@ -3,10 +3,6 @@
#include "server_http.hpp"
#include <future>
#ifndef USE_STANDALONE_ASIO
namespace asio = boost::asio;
#endif
using namespace std;
using HttpServer = SimpleWeb::Server<SimpleWeb::HTTP>;
@ -363,7 +359,7 @@ int main() {
}
else if(call_num == 3) {
ASSERT(response->content.string().empty());
ASSERT(ec == asio::error::eof);
ASSERT(ec == SimpleWeb::error::eof);
}
++call_num;
});