修复更新httpclient没有method导致请求失败问题

This commit is contained in:
2024-06-20 17:42:48 +08:00
parent 6848e56fb6
commit e90972a1b0

View File

@@ -550,7 +550,6 @@ bool ylib::network::http::client_plus::request()
// std::cout << CLIENT->GetSSLCipherList() << std::endl;
m_listener->m_recv_state = 0;
const char* method;
if (m_method == "GET")
{
@@ -601,7 +600,7 @@ bool ylib::network::http::client_plus::request()
}
bool result = CLIENT->SendRequest(
method,
m_method.c_str(),
m_path.c_str(),
pHeader,
(int)nHeader,