File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
src/main/java/com/wire/lithium Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<groupId >com.wire</groupId >
8
8
<artifactId >lithium</artifactId >
9
- <version >3.5.1 </version >
9
+ <version >3.5.2 </version >
10
10
<name >Lithium</name >
11
11
<description >Wire Bots SDK written in Java</description >
12
12
<url >https://wire.com/</url >
71
71
<dependency >
72
72
<groupId >com.wire</groupId >
73
73
<artifactId >xenon</artifactId >
74
- <version >1.5.1 </version >
74
+ <version >1.5.2 </version >
75
75
<exclusions >
76
76
<exclusion >
77
77
<groupId >org.slf4j</groupId >
Original file line number Diff line number Diff line change 44
44
import javax .ws .rs .core .*;
45
45
import java .io .ByteArrayOutputStream ;
46
46
import java .io .IOException ;
47
+ import java .net .URI ;
47
48
import java .nio .charset .StandardCharsets ;
48
49
import java .security .NoSuchAlgorithmException ;
49
50
import java .util .*;
@@ -103,8 +104,12 @@ private static String deriveHost() {
103
104
}
104
105
105
106
public Response status () {
106
- return httpClient .target (wireHost )
107
- .path ("status" )
107
+ URI uri = URI .create (wireHost );
108
+ String scheme = uri .getScheme ();
109
+ String host = uri .getHost ();
110
+ String target = String .format ("%s://%s" , scheme , host );
111
+ return httpClient .target (target )
112
+ .path ("api-version" )
108
113
.request ()
109
114
.get ();
110
115
}
You can’t perform that action at this time.
0 commit comments