"""Lowlevel cookie parsing facility that operates on bytes."""i=0n=len(b)
# Ignore parameters. We have no interest in them.ifkey.lower() notin_cookie_params:
Maybe it should be if value.lower() in _cookie_params, if that, I will submit a pull request to fix it.
This appears to be a bug. I think the intention of the code was to ignore parameters that would only be relevant in a response's Set-Cookie if they were present in a request's Cookie header, but it ended up excluding the keys, not the parameters. Here's an example, this always returns "not set".