Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http upload file bug #2

Open
chengjianxi opened this issue Dec 2, 2020 · 1 comment
Open

http upload file bug #2

chengjianxi opened this issue Dec 2, 2020 · 1 comment

Comments

@chengjianxi
Copy link

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
Copy link
Author

此bug导致文件上传没有回调进度

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant