howdy! I’m trying to hack around an error I get when calling the Datadog REST API (`WARNING: Invalid cookie header: "Set-Cookie: DD-PSHARD=3; expires="Thu, 12-Apr-2018 06:40:25 GMT"; Max-Age=604800; Path=/; secure; HttpOnly". Invalid 'expires' attribute: "Thu, 12-Apr-2018 06:40:25 GMT"`). No “built-in” cookie-policies seems to handle it, so I’m currently wrapping my (get ...)
with a (with-middleware ....
) that removes the wrap-cookies
fn from the default middlewares. I still get the annoying warning on stderr though.
I thought that the new multifn get-cookie-policy
could be used to work-around this in a better way - but I can’t really get the example in the docs to work.. Any ideas?