curl-library
[PATCH ]Cookie sort order not deterministic
Date: Sun, 7 Apr 2013 10:39:00 +0200
Hello everyone,
I noticed that the cookie sort order is not deterministic between
platforms if there are multiple cookies with the same path (length).
This makes testcase 62 fail on Windows.
In order to make the cookie sort function more deterministic, I would
like to propose a fallback-based approach: Compare the cookie
attributes in the following order:
1. path length
2. domain / host length
3. name
Attached you will find a patch to implement this change. I would
kindly like to ask for review and feedback. Thanks in advance!
Best regards,
Marc
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- application/octet-stream attachment: 0001-cookie.c-Made-cookie-sort-function-more-deterministi.patch