mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-03 03:55:58 +01:00
Fixup
This commit is contained in:
@@ -11,8 +11,9 @@ object HttpClientUtil {
|
|||||||
val builder = HttpClientBuilder.create.useSystemProperties
|
val builder = HttpClientBuilder.create.useSystemProperties
|
||||||
|
|
||||||
proxy.foreach { proxy =>
|
proxy.foreach { proxy =>
|
||||||
|
builder.setProxy(new HttpHost(proxy.host, proxy.port))
|
||||||
|
|
||||||
for (user <- proxy.user; password <- proxy.password) {
|
for (user <- proxy.user; password <- proxy.password) {
|
||||||
builder.setProxy(new HttpHost(proxy.host, proxy.port))
|
|
||||||
val credential = new BasicCredentialsProvider()
|
val credential = new BasicCredentialsProvider()
|
||||||
credential.setCredentials(
|
credential.setCredentials(
|
||||||
new AuthScope(proxy.host, proxy.port),
|
new AuthScope(proxy.host, proxy.port),
|
||||||
|
|||||||
Reference in New Issue
Block a user