Explorar el Código

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

nianhua hace 2 años
padre
commit
e90972a1b0
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/net/http_client_plus.cpp

+ 1 - 2
src/net/http_client_plus.cpp

@@ -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,