[AWS] Cookie Max-Age spec violation

Pascal Obry pascal at obry.net
Sun Nov 18 11:46:43 CET 2012


Maciej,

> Solution: change the type of Max_Age parameter in all relevant
> subprograms in aws-cookies.ad[sb] to Natural and use appropriate
> formatting routine. The kosher version of the above example is:
> 
> ...; Max-Age: 3600; ...

Indeed! Good catch. But instead of changing all subprograms to take a
Natural which will be non upward compatible and not that useful since
comparing two Ada.Calendar.Time returns a Duration. I would probably
just truncate the fractional part at the time the Max-Age is output.

Thanks.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B


More information about the AWS mailing list