Ver Fonte

fixbug: forgot to set state

ithewei há 3 anos atrás
pai
commit
4ad9281ac6
1 ficheiros alterados com 1 adições e 0 exclusões
  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);
             }
         }