Fixed unit test. Added URL encoding.

This commit is contained in:
yhirose 2012-10-11 23:52:34 -04:00
parent 487ad28a17
commit 3b3828aaff
3 changed files with 353 additions and 58 deletions

View file

@ -84,6 +84,10 @@ int main(void)
c.response.set_content(dump_headers(c.request.headers), "text/plain");
});
svr.get("/stop", [&](Connection& c) {
svr.stop();
});
svr.set_error_handler([](Connection& c) {
const char* fmt = "<p>Error Status: <span style='color:red;'>%d</span></p>";
char buf[BUFSIZ];