Skip to content

Commit a0a83a6

Browse files
author
Stephane Landelle
committed
Google redirect has changed
1 parent c7ee3e7 commit a0a83a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

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

100-
String anyGoogleSubdomain = "http://www\\.google\\.[a-z]+(\\.[a-z]+)*:80";
101100
String baseUrl = getBaseUrl(response.getUri());
102101

103-
assertTrue(baseUrl.matches(anyGoogleSubdomain), "response does not show redirection to " + anyGoogleSubdomain);
102+
assertTrue(baseUrl.startsWith("http://www.google./"), "response does not show redirection to a google subdomain, got " + baseUrl);
104103
} finally {
105104
c.close();
106105
}

0 commit comments

Comments
 (0)