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.

Activity

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

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