Skip to content

Commit

Permalink
[BUG] Https protocol schema is not handled correctly in java 11 nativ…
Browse files Browse the repository at this point in the history
…e code #3729 (#3730)

* added getter for schema
  • Loading branch information
thecrazzymouse authored and macjohnny committed Aug 23, 2019
1 parent 96dd31a commit 73eae09
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,17 @@ public class ApiClient {
return scheme + "://" + host + (port == -1 ? "" : ":" + port) + basePath;
}

/**
* Set a custom scheme for the target service, for example 'https'.
*
* @param scheme The scheme of the target service
* @return This object.
*/
public ApiClient setScheme(String scheme){
this.scheme = scheme;
return this;
}

/**
* Set a custom request interceptor.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,17 @@ public String getBaseUri() {
return scheme + "://" + host + (port == -1 ? "" : ":" + port) + basePath;
}

/**
* Set a custom scheme for the target service, for example 'https'.
*
* @param scheme The scheme of the target service
* @return This object.
*/
public ApiClient setScheme(String scheme){
this.scheme = scheme;
return this;
}

/**
* Set a custom request interceptor.
*
Expand Down

0 comments on commit 73eae09

Please sign in to comment.