Fix the router (todo: req->getParameter hook up)

This commit is contained in:
Alex Hultman
2018-10-04 04:05:43 +02:00
parent 7d06bef485
commit be0eb69597
4 changed files with 225 additions and 154 deletions
+2
View File
@@ -107,6 +107,8 @@ public:
/* Write parts of the response in chunking fashion */
bool write(std::string_view data) {
writeStatus(HTTP_200_OK);
/* Do not allow sending 0 chunks, they mark end of response */
if (!data.length()) {
return true; // are we corked still?