Commit 3c5044f3 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

copy the POST request body

parent a5db712e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -62,6 +62,12 @@ public:
        request->unparsedMethod(),
        request->unparsedUri());

    xzero::Buffer body_buf;
    request->input()->read(&body_buf);
    if (!body_buf.empty()) {
      req->addBody(body_buf.str());
    }

    for (const auto& handler : *handlers_) {
      if (handler->handleHTTPRequest(req, res)) {
        break;