1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-19 02:22:05 +01:00

Merge pull request #530 from Flowdalic/fix-bosh-url

[bosh] Fix BOSHConfiguration.getURI()
This commit is contained in:
Florian Schmaus 2022-05-26 20:21:14 +02:00 committed by GitHub
commit 52a3490e07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ public final class BOSHConfiguration extends ConnectionConfiguration {
}
public URI getURI() throws URISyntaxException {
String uri = https ? "https://" : "http://" + getHostString() + ":" + this.port + file;
String uri = (https ? "https://" : "http://") + getHostString() + ":" + this.port + file;
return new URI(uri);
}