Skip to content
代码片段 群组 项目
提交 dca702a5 编辑于 作者: NLR's avatar NLR 提交者: Kamil Trzciński
浏览文件

Make http_io honor HTTP(S)_PROXY environment.

上级 c3450ab9
No related branches found
No related tags found
无相关合并请求
---
title: Fixed HTTP_PROXY environment not honored when reading remote traces.
merge_request: 19282
author: NLR
type: fixed
...@@ -148,7 +148,7 @@ def in_range? ...@@ -148,7 +148,7 @@ def in_range?
def get_chunk def get_chunk
unless in_range? unless in_range?
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http| response = Net::HTTP.start(uri.hostname, uri.port, proxy_from_env: true, use_ssl: uri.scheme == 'https') do |http|
http.request(request) http.request(request)
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册