Commit dca702a5 authored by NLR's avatar NLR Committed by Kamil Trzciński

Make http_io honor HTTP(S)_PROXY environment.

parent c3450ab9
---
title: Fixed HTTP_PROXY environment not honored when reading remote traces.
merge_request: 19282
author: NLR
type: fixed
...@@ -148,7 +148,7 @@ module Gitlab ...@@ -148,7 +148,7 @@ module Gitlab
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment