]> source.dussan.org Git - jgit.git/commit
HttpSupport.proxyFor(): use only scheme, host, and port 84/146884/2
authorThomas Wolf <thomas.wolf@paranor.ch>
Wed, 31 Jul 2019 17:40:40 +0000 (19:40 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Wed, 30 Oct 2019 14:16:51 +0000 (15:16 +0100)
commitb7d1eb4185aa35f037790580b60c1f2d76968fa8
tree7f5a387d4dd0fd2871f31cf2ee456c0f90d34bdd
parentcf11a03bc267fa86aa5dc538ff0ffc777d659c8a
HttpSupport.proxyFor(): use only scheme, host, and port

Some URLs cannot be converted via URL.toURI(). So don't convert
the full URL but only the bits that are needed to find a proxy
via java.net.ProxySelector.

Bug: 549690
Change-Id: I55b5ecee70c6b52f72f9bdba9ce552fde7f33976
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/HttpSupportTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java