Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3696

Show
Ignore:
Timestamp:
07/02/08 03:47:28 (2 months ago)
Author:
kris
Message:

now able to send cookies with negative date

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/net/http/HttpCookies.d

    r3678 r3696  
    4545                        comment; 
    4646        uint            vrsn=1;              // 'version' is a reserved word 
    47         long            maxAge=-1; 
    4847        bool            secure=false; 
     48        long            maxAge=long.min; 
    4949 
    5050        /*********************************************************************** 
     
    211211                       consume (";Secure"); 
    212212 
    213                    if (maxAge >= 0
     213                   if (maxAge != maxAge.min
    214214                       consume (";Max-Age="c), consume (Integer.format (tmp, maxAge)); 
    215215                   } 
     
    225225        { 
    226226                vrsn = 1; 
    227                 maxAge = -1; 
    228227                secure = false; 
     228                maxAge = maxAge.min; 
    229229                name = path = domain = comment = null; 
    230230                return this;