Skip to content

Commit

Permalink
[RESTEASY-1588] Location header contains uppercase characters in ipv6…
Browse files Browse the repository at this point in the history
… address on Windows

Issue: https://issues.jboss.org/browse/RESTEASY-1588
  • Loading branch information
lasombra authored and asoldano committed Mar 8, 2017
1 parent d449538 commit df35968
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -123,7 +123,7 @@ private void testRedirect(ClientResponse response) {
for (Object name : headers.keySet()) {
logger.info(name + ":" + headers.getFirst(name.toString()));
}
Assert.assertEquals("The location header doesn't have the expected value", generateURL("/redirect/data"), headers.getFirst("location"));
Assert.assertTrue(headers.getFirst("location").toString().equalsIgnoreCase(generateURL("/redirect/data")));
}

@SuppressWarnings(value = "unchecked")
Expand All @@ -133,7 +133,7 @@ private void testRedirect(Response response) {
for (Object name : headers.keySet()) {
logger.info(name + ":" + headers.getFirst(name.toString()));
}
Assert.assertEquals("The location header doesn't have the expected value", generateURL("/redirect/data"), headers.getFirst("location"));
Assert.assertTrue(headers.getFirst("location").toString().equalsIgnoreCase(generateURL("/redirect/data")));
}

}

0 comments on commit df35968

Please sign in to comment.