Skip to content

Case mismatch between spec and generated wrappers #40

@fathonyfath

Description

@fathonyfath

Hi,

I found another minor problem when you have capitalized header key, such as X-API-KEY: FooBar, Echo will convert it in a Header map with X-Api-Key key while the generated still looking for X-API-KEY.

There is 2 possible solution, using headers[strings.ToLower(strings.Title(strings.ToLower("X-API-KEY")) or headers.Get("X-API-KEY") however the latter solution probably going to change to template a lot because now it's return the first value they found.

Thanks!

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