Skip to content

Cache interceptor does not process capitalized Cache-Control header in request #3904

Open
@zdm

Description

Bug Description

Cache interceptor does not process Cache-Control: no-store request header if header name is capitalized.

In code we can see that you look for lowercased header name only.

You should convert header names to lowercase before search for cache-control;

Reproducible By

Please. see above.

Expected Behavior

Please. see above.

Logs & Screenshots

Environment

undici v7

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions