Skip to content

SILKY_HIDE_COOKIES does not hide cookie header in different case #673

@shtimn

Description

@shtimn

The SILKY_HIDE_COOKIES setting does not hide the cookie header if it is written in a different case.

Current behavior:
When using the SILKY_HIDE_COOKIES setting, the cookie header is not hidden if it is written in a different case compared to the specified name in the code in upper case
Expected behavior:
The SILKY_HIDE_COOKIES setting should hide the cookie header, regardless of the case in which it is written. Currently, it only works if the case matches exactly.

Steps to reproduce:

  1. Set the SILKY_HIDE_COOKIES setting to True.
  2. Send a request with a 'cookie' header in lower case.
  3. Inspect the request headers on the server side, and observe that the 'COOKIE' header is present.

Refs

  • COOKIE in upper case is hardcoded here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions