Skip to content

Commit

Permalink
Fix HTTPFSv2 using proxy (alibaba#336)
Browse files Browse the repository at this point in the history
Signed-off-by: Coldwings <coldwings@me.com>
  • Loading branch information
Coldwings authored Jan 18, 2024
1 parent 1df8b3e commit c329e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/httpfs/httpfs_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ class HttpFile_v2 : public fs::VirtualReadOnlyFile {
again:
estring url;
url.appends(m_url, "?", m_url_param);
op.req.reset(net::http::Verb::GET, url);
op.set_enable_proxy(m_fs->get_client()->has_proxy());
op.req.reset(net::http::Verb::GET, url, op.enable_proxy);
op.req.headers.merge(m_common_header);
op.req.headers.range(offset, offset + length - 1);
op.req.headers.content_length(0);
Expand Down

0 comments on commit c329e96

Please sign in to comment.