Skip to content

strip_spaces fails on nil since 1.15.0 #1180

@cpiemontese

Description

@cpiemontese

Hello!

Since v1.15.0 strip_spaces, and thus Plug.Conn.Utils.content_type, on a nil will fail with an ArgumentError whereas before it simply returned an :error.

I don't know if this is really an issue, given that content_type should be expected to just handle binary, but since I don't see it explicitly documented anywhere I wanted to report it

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