Skip to content

Missing ! in header-mutating functions #1277

Description

@anowacki

The following functions mutate their input, but do not have a trailing ! in the function name:

This is unexpected; I think most people would have expected functions with these names to return a copy and leave the input unaltered. I would suggest treating this as a bug and renaming these functions setheader!, appendheader! and removeheader!, in line with functions like cancel!, setcookies!, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions