hewei.it %!s(int64=4) %!d(string=hai) anos
pai
achega
cc20b66830
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      http/server/HttpHandler.cpp

+ 3 - 0
http/server/HttpHandler.cpp

@@ -20,6 +20,9 @@ int HttpHandler::HandleHttpRequest() {
 
 preprocessor:
     state = HANDLE_BEGIN;
+    if (writer) {
+        writer->Begin();
+    }
     if (service->preprocessor) {
         status_code = service->preprocessor(pReq, pResp);
         if (status_code != 0) {