Skip to content

Commit 158db54

Browse files
committed
Casting fix
1 parent 59e1157 commit 158db54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/atomgraph/linkeddatahub/server/filter/response/CacheInvalidationFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void filter(ContainerRequestContext req, ContainerResponseContext resp) t
6262

6363
if (req.getMethod().equals(HttpMethod.POST) && resp.getHeaderString(HttpHeaders.LOCATION) != null)
6464
{
65-
URI location = (URI)resp.getHeaders().get(HttpHeaders.LOCATION).get(0);
65+
URI location = URI.create(resp.getHeaderString(HttpHeaders.LOCATION));
6666
URI parentURI = location.resolve("..").normalize();
6767
URI relativeParentURI = getApplication().get().getBaseURI().relativize(parentURI);
6868

0 commit comments

Comments
 (0)