Skip to content

Commit 574a418

Browse files
committed
Hent path uten å hente query params
1 parent f426687 commit 574a418

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/no/digipost/api/client/internal/http/request/interceptor/ApacheHttpRequestToSign.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ public SortedMap<String, String> getHeaders() {
4848

4949
@Override
5050
public String getPath() {
51-
String path = clientRequest.getPath();
52-
return path != null ? path : "";
51+
try {
52+
String path = clientRequest.getUri().getPath();
53+
return path != null ? path : "";
54+
} catch (URISyntaxException e) {
55+
throw new RuntimeException(e.getMessage(), e);
56+
}
5357
}
5458

5559
@Override

0 commit comments

Comments
 (0)