mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-14 19:03:30 +00:00
Fixed unit test. Added URL encoding.
This commit is contained in:
1 parent
487ad28a17
commit
3b3828aaff
3 files changed
+353
-58
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user