Thomas Wolf
40d6eda3f1
HTTP: cookie file stores expiration in seconds
A cookie file stores the expiration in seconds since the Linux Epoch, not in milliseconds. Correct reading and writing cookie files; with a backwards-compatibility hack to read files that contain a millisecond timestamp. Add a test, and fix tests not to rely on the actual current time so that they will also run successfully after 2030-01-01 noon. Bug: 571574 Change-Id: If3ba68391e574520701cdee119544eedc42a1ff2 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch> |
3 anos atrás | |
---|---|---|
.. | ||
cookies-invalid.txt | Support reading and writing cookies. | 5 anos atrás |
cookies-simple1.txt | HTTP: cookie file stores expiration in seconds | 3 anos atrás |
cookies-simple2.txt | HTTP: cookie file stores expiration in seconds | 3 anos atrás |
cookies-with-empty-and-comment-lines.txt | HTTP: cookie file stores expiration in seconds | 3 anos atrás |
cookies-with-milliseconds.txt | HTTP: cookie file stores expiration in seconds | 3 anos atrás |