git-lfs/httputil
chalstrick eb1977160a Allow usage of proxies even when contacting localhost
Sometimes it makes sense to use a proxy even when the remote host is localhost
or 127.0.0.1. git-lfs in contrast to e.g. native git does not allow to use a
proxy when talking to localhost. Remove this special treatment of localhost
and react only on http_proxy or no_proxy env variables.

My use case: I wanted to debug/analyze network traffic from a git client to the
git server and the lfs server running on my developer machine. I set up
mitmproxy [1] as a proxy server running on localhost and I set http_proxy to
point to mitmproxy. I was able to see all the traffic between the client and
the local git server in mitmproxy but the the communication between the client
and the lfs server was hidden because git-lfs ignored the proxy settings
because the hostname was localhost.
2016-10-25 11:36:24 +02:00
..
certs_darwin.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
certs_freebsd.go Major refactor to pull things into config, httputil, tools 2016-05-13 17:38:06 +01:00
certs_linux.go Major refactor to pull things into config, httputil, tools 2016-05-13 17:38:06 +01:00
certs_openbsd.go Unbreak building httputil on OpenBSD 2016-07-11 19:32:56 +02:00
certs_test.go httputil: enforce config immutability 2016-08-09 10:57:58 -06:00
certs_windows.go Major refactor to pull things into config, httputil, tools 2016-05-13 17:38:06 +01:00
certs.go fix merge conflicts 2016-08-16 11:20:15 -06:00
http.go replace .GitConfig* with .Git.* 2016-08-15 15:43:38 -06:00
ntlm_test.go replace config.Config references in httputil 2016-07-21 18:07:23 -06:00
ntlm.go replace config.Config references in httputil 2016-07-21 18:07:23 -06:00
proxy_test.go config,etc: rename EnvFetcher, config.Env to OsFetcher, config.Os 2016-08-04 14:41:04 -06:00
proxy.go Allow usage of proxies even when contacting localhost 2016-10-25 11:36:24 +02:00
request_error_test.go Add HTTP 507 (Insufficient Storage) to the list of optional statuses (#1473) 2016-08-22 10:37:04 -06:00
request_test.go more fixes 2016-07-21 11:07:46 -06:00
request.go api,auth,errors,httputil,lfs,transfer: wrap errors 2016-08-18 15:02:21 -06:00
response.go Add HTTP 507 (Insufficient Storage) to the list of optional statuses (#1473) 2016-08-22 10:37:04 -06:00