From 6b4e4275d374e47e4b87b57bbabf94d5dd55e7b3 Mon Sep 17 00:00:00 2001 From: Grace Kloba Date: Mon, 11 May 2009 13:20:17 -0700 Subject: [PATCH] Fix 1799207. With the new local dns, we should allow the host without any PERIOD. Otherwise http://go won't work properly. --- core/java/android/webkit/CookieManager.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/java/android/webkit/CookieManager.java b/core/java/android/webkit/CookieManager.java index c0c6775c3f53d..e8c22798bd55b 100644 --- a/core/java/android/webkit/CookieManager.java +++ b/core/java/android/webkit/CookieManager.java @@ -647,8 +647,6 @@ public final class CookieManager { // another file in the local web server directory. Still // "localhost" is the best pseudo domain name. ret[0] = "localhost"; - } else if (!ret[0].equals("localhost")) { - return null; } } else if (index == ret[0].lastIndexOf(PERIOD)) { // cookie host must have at least two periods