Skip to content

Commit

Permalink
chore(client): version release
Browse files Browse the repository at this point in the history
  • Loading branch information
astappiev committed Jun 17, 2024
1 parent e9c210f commit 0c6a639
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion interweb-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</parent>

<artifactId>interweb-client</artifactId>
<version>4.0.12</version>
<version>4.1.0</version>
<packaging>jar</packaging>

<name>Interweb Client</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.l3s.interweb.client;

import java.io.IOException;
import java.io.Serial;
import java.io.Serializable;
import java.net.URI;
import java.net.http.HttpClient;
Expand Down Expand Up @@ -28,6 +29,7 @@
import de.l3s.interweb.core.util.StringUtils;

public class Interweb implements Serializable {
@Serial
private static final long serialVersionUID = 7231324400348062196L;

private final ObjectMapper mapper;
Expand Down Expand Up @@ -155,7 +157,7 @@ public <T> T sendPostRequest(final String apiPath, final Object query, Class<T>

public HttpResponse<String> sendRequest(final HttpRequest.Builder builder) throws InterwebException {
try {
builder.header("Api-Key", apikey);
builder.header("Authorization", "Bearer " + apikey);
builder.header("Accept", "application/json");

HttpClient client = HttpClient.newHttpClient();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package de.l3s.interweb.client;

import java.io.Serial;

public class InterwebException extends Exception {
@Serial
private static final long serialVersionUID = 1648272342540671760L;

public InterwebException(String message) {
Expand Down

0 comments on commit 0c6a639

Please sign in to comment.