Skip to content

json2xml plugin incorrectly changes request 'content-length' header #184

@mecclesgoogle

Description

@mecclesgoogle

Lines #137 and #141

The request object has all header names in lower case, but the code uses Capital case.

req.headers['Content-Type'] = ...

This will result in the same header being appended. I.e. it ends up with 'Content-Type' and 'content-type'.
The fix should be to assign the header using the lower-case name.

n.b. setHeader(.., ..) method is not available on the IncomingRequest type.

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