Skip to content

Headers containing commas generate validation errors #114

Description

@jamesfcarter

When upgrading to v1.3.0 I started seeing errors like this:

Invalid format for parameter X-My-Header: parameter 'X-My-Header': expected single value, got 24 parts

X-My-Header was a JSON string containing commas.

This appears to be due to the headers now being run through splitStyledParameter which splits on comma and requires only one part. (#100)
I've worked around this by using a type that implements encoding.TextUnmarshaler to avoid it reaching that code but was this behaviour intended?

Thanks.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions