Skip to content

Commit

Permalink
Avoid double encoding of URLs (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreituicu committed Nov 21, 2022
1 parent 70ab0e8 commit e129dba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static void verifyLinkedResources(HtmlUnitClient client, String path) th
for (URI ref : references ) {
if (isSameOrigin(client.getUrl(), ref)) {
LOG.info("verifying linked resource {}", ref.toString());
SlingHttpResponse response = client.doGet(ref.getRawPath());
SlingHttpResponse response = client.doGet(ref.getPath());
int statusCode = response.getStatusLine().getStatusCode();
int responseSize = response.getContent().length();
assertEquals("Unexpected status returned from [" + ref + "]", 200, statusCode);
Expand Down

0 comments on commit e129dba

Please sign in to comment.