mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 18:48:00 +01:00
[bosh] Use ConnectionConfiguration.getHostString() in BOSHConfiguration
This commit is contained in:
parent
00bcbff5ee
commit
aa441d743c
1 changed files with 2 additions and 3 deletions
|
@ -77,9 +77,8 @@ public final class BOSHConfiguration extends ConnectionConfiguration {
|
||||||
}
|
}
|
||||||
|
|
||||||
public URI getURI() throws URISyntaxException {
|
public URI getURI() throws URISyntaxException {
|
||||||
return new URI((https ? "https://" : "http://")
|
String uri = https ? "https://" : "http://" + getHostString() + ":" + this.port + file;
|
||||||
+ (this.host != null ? this.host : this.hostAddress)
|
return new URI(uri);
|
||||||
+ ":" + this.port + file);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, String> getHttpHeaders() {
|
public Map<String, String> getHttpHeaders() {
|
||||||
|
|
Loading…
Reference in a new issue