Skip to content

Generated code for C# does not include default headers for some methods #2029

@webron

Description

@webron

From @ayuda-yves on February 3, 2016 16:21

Some generated methods have the line:

var headerParams = new Dictionary<String, String>();

instead of

var headerParams = new Dictionary<String, String>(Configuration.DefaultHeader);

Because of this, the default headers are missing when calling those methods.

Not sure why some methods have the correct code and why others don't, but it seems to be based on the method's signature as all methods with the same signature will either all include headers or none do.

Copied from original issue: swagger-api/swagger-editor#808

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions