Closed treese closed 8 years ago
Awesome. Thanks! I can't reproduce the problem described in #10 and #11, so it is not possible for me to confirm that whether this solves the problem or not. However, this fix sounds quite reasonable and it works nicely. I would merge this and leave the issue #12 open for feedback.
Unfortunately, adding a cookie as an extra header ends up with multiple cookie headers, which isn't really allowed in current HTTP specifications, and not accepted by Google in any case. (There is a comment in url-cookie.el complaining about servers that don't accept multiple Cookie: headers, but the current specs are clear on this now.)
So we inject a new cookie into the Emacs cookie storage, set to expire an hour from now.