Skip to content

http_client_send_async返回状态正常,但是body偶尔为空的问题 #680

Closed
@LOUTINIER

Description

@LOUTINIER
http_client_send_async(req, [=](const HttpResponsePtr &resp) {
if (resp != nullptr)
        {
            resp->body; //body=""
            resp->status_code; // status_code=200
        }
        else
        {
        }
}

有没有人遇到这种情况,发生这种情况时服务端并未收到这条请求,但是libhv确实返回了200以及空body

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions