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) {