hewei.it преди 4 години
родител
ревизия
cc20b66830
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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) {