phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

http upload file bug

Open chengjianxi opened this issue 3 years ago • 1 comments

static HttpRequest CreateRequest(const std::string& url, const HttpMultipart& multipart,
		const ResponseCallback& response_cb,
		const ProgressCallback& progress_cb = ProgressCallback(),
		const SpeedCallback& speed_cb = SpeedCallback(),
		const TransferCallback& transfer_cb = TransferCallback());

函数回调函数未使用,在文件phoenix/phoenix/comm/nim_http/wrapper/nim_http.cpp 22行~23中,下面的代码应改:

HttpRequest http_request =
		std::make_shared<CurlHttpRequest>(url, response_cb);

改成

HttpRequest http_request =
		std::make_shared<CurlHttpRequest>(url, response_cb, progress_cb, speed_cb, transfer_cb);

chengjianxi avatar Dec 02 '20 05:12 chengjianxi