clean_cookies

gafaelfawr.auth.clean_cookies(headers)

Remove Gafaelfawr cookies from cookie headers.

Parameters:

headers (list[str]) – The Cookie headers of an incoming request, as a list (allowing for the case that the incoming request had multiple headers named Cookie).

Returns:

Any remaining Cookie headers after removing Gafaelfawr cookies.

Return type:

list of str