diff --git a/swoole_http.c b/swoole_http.c index 0ad632c2456..4d15a2ca30a 100644 --- a/swoole_http.c +++ b/swoole_http.c @@ -464,6 +464,7 @@ static int http_request_new(http_client* client TSRMLS_DC) zend_update_property(swoole_http_request_class_entry_ptr, zrequest, ZEND_STRL("header"), header TSRMLS_CC); client->zrequest = zrequest; + client->end = 0; bzero(&client->request, sizeof(client->request)); bzero(&client->response, sizeof(client->response)); return SW_OK;