mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
closes #15053 Signed-off-by: David Pace <dev@davidpace.de>
This commit is contained in:
parent
5e059ba044
commit
00dae6f615
@ -275,7 +275,7 @@ public class BoschHttpClient extends HttpClient {
|
||||
logger.trace("Create request for http client {}", this.toString());
|
||||
|
||||
Request request = this.newRequest(url).method(method).header("Content-Type", "application/json")
|
||||
.header("api-version", "2.1") // see https://github.com/BoschSmartHome/bosch-shc-api-docs/issues/46
|
||||
.header("api-version", "3.2") // see https://github.com/BoschSmartHome/bosch-shc-api-docs/issues/80
|
||||
.timeout(10, TimeUnit.SECONDS); // Set default timeout
|
||||
|
||||
if (content != null) {
|
||||
|
@ -100,6 +100,7 @@ class BoschHttpClientTest {
|
||||
void createRequest() {
|
||||
Request request = httpClient.createRequest("https://127.0.0.1", HttpMethod.GET);
|
||||
assertNotNull(request);
|
||||
assertEquals("3.2", request.getHeaders().get("api-version"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user