Skip to content

Commit

Permalink
fix bug getProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Schulze committed Aug 8, 2016
1 parent 5ed3e4e commit c162f54
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/de/micromata/jira/rest/JiraRestClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class JiraRestClient implements RestParamConstants, RestPathConstants {
private URI baseUri;
private String username = StringUtils.EMPTY;
private CloseableHttpClient httpclient;

private HttpHost proxyHost;
private CookieStore cookieStore = new BasicCookieStore();
private HttpClientContext clientContext;

Expand Down Expand Up @@ -111,7 +111,8 @@ public int connect(URI uri, String username, String password, HttpHost proxyHost

// setzen des Proxies
if(proxyHost != null){
requestConfig = RequestConfig.custom().setProxy(proxyHost).build();
this.proxyHost = proxyHost;
this.requestConfig = RequestConfig.custom().setProxy(proxyHost).build();
}

URIBuilder uriBuilder = URIHelper.buildPath(baseUri, USER);
Expand Down Expand Up @@ -227,4 +228,7 @@ public String getUsername() {
return username;
}

public HttpHost getProxy() {
return proxyHost;
}
}

0 comments on commit c162f54

Please sign in to comment.