Skip to content

Commit c541ad0

Browse files
carryelStephane Landelle
authored andcommitted
Backport #246
1 parent ae78988 commit c541ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/ning/http/client/async/Relative302Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void redirected302Test() throws Throwable {
9797
assertNotNull(response);
9898
assertEquals(response.getStatusCode(), 200);
9999

100-
String anyGoogleSubdomain = "http://www.google.[a-z]{1,}:80";
100+
String anyGoogleSubdomain = "http://www\\.google\\.[a-z]+(\\.[a-z]+)*:80";
101101
String baseUrl = getBaseUrl(response.getUri());
102102

103103
assertTrue(baseUrl.matches(anyGoogleSubdomain), "response does not show redirection to " + anyGoogleSubdomain);

0 commit comments

Comments
 (0)