Skip to content

Commit 7204f93

Browse files
committed
Issue AsyncHttpClient#246 "Relative302Test could be failed in some countries"
+ fixed the regular expression
1 parent 979487a commit 7204f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

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

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

0 commit comments

Comments
 (0)