jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
changeset 18577 f76979ce4bc4
parent 18541 a974731db859
child 20787 ab071ce90368
equal deleted inserted replaced
18576:7a5c231327af 18577:f76979ce4bc4
  2804         if (value == null)
  2804         if (value == null)
  2805             return null;
  2805             return null;
  2806 
  2806 
  2807         if (SET_COOKIE.equalsIgnoreCase(name) ||
  2807         if (SET_COOKIE.equalsIgnoreCase(name) ||
  2808             SET_COOKIE2.equalsIgnoreCase(name)) {
  2808             SET_COOKIE2.equalsIgnoreCase(name)) {
       
  2809 
  2809             // Filtering only if there is a cookie handler. [Assumption: the
  2810             // Filtering only if there is a cookie handler. [Assumption: the
  2810             // cookie handler will store/retrieve the HttpOnly cookies]
  2811             // cookie handler will store/retrieve the HttpOnly cookies]
  2811             if (cookieHandler == null)
  2812             if (cookieHandler == null || value.length() == 0)
  2812                 return value;
  2813                 return value;
  2813 
  2814 
  2814             sun.misc.JavaNetHttpCookieAccess access =
  2815             sun.misc.JavaNetHttpCookieAccess access =
  2815                     sun.misc.SharedSecrets.getJavaNetHttpCookieAccess();
  2816                     sun.misc.SharedSecrets.getJavaNetHttpCookieAccess();
  2816             StringBuilder retValue = new StringBuilder();
  2817             StringBuilder retValue = new StringBuilder();