diff --git a/java/src/com/google/gdata/client/http/GoogleGDataRequest.java b/java/src/com/google/gdata/client/http/GoogleGDataRequest.java index 9c037d51..ea1cc773 100644 --- a/java/src/com/google/gdata/client/http/GoogleGDataRequest.java +++ b/java/src/com/google/gdata/client/http/GoogleGDataRequest.java @@ -196,6 +196,10 @@ public GoogleCookie(URI uri, String cookieHeader) { */ private boolean matchDomain(String testDomain, String tailDomain) { + if (tailDomain.startsWith(".")) { + tailDomain= tailDomain.substring(1); + } + // Simple check if (!testDomain.endsWith(tailDomain)) { return false;