mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Update tutorial-05-http_proxy.md
This commit is contained in:
@@ -174,8 +174,8 @@ void http_callback(WFHttpTask *task)
|
||||
context->proxy_task->set_callback(reply_callback);
|
||||
|
||||
/* Copy the remote webserver's response, to proxy response. */
|
||||
if (resp->get_parsed_body(&body, &len))
|
||||
resp->append_output_body_nocopy(body, len);
|
||||
resp->get_parsed_body(&body, &len);
|
||||
resp->append_output_body_nocopy(body, len);
|
||||
*proxy_resp = std::move(*resp);
|
||||
...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user