Skip to content

Commit f16dc4a

Browse files
committed
Get path without getting query params too
`getPath()`directly gets the path with query params which is not the same as the old behavior
1 parent 4101dc3 commit f16dc4a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/java/no/digipost/api/useragreements/client/filters/request/RequestToSign.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

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

0 commit comments

Comments
 (0)