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