Browse Source

fixbug: forgot to set state

ithewei 3 năm trước cách đây
mục cha
commit
4ad9281ac6
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      http/server/HttpResponseWriter.h

+ 1 - 0
http/server/HttpResponseWriter.h

@@ -161,6 +161,7 @@ public:
             }
             if (is_dump_body) {
                 std::string msg = response->Dump(is_dump_headers, is_dump_body);
+                state = SEND_BODY;
                 ret = write(msg);
             }
         }