Added SimpleWeb::error, and simplified request size checks on server
This commit is contained in:
parent
1a56f4810e
commit
31e6819b42
6 changed files with 39 additions and 38 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue