serverless-plugin-simulate icon indicating copy to clipboard operation
serverless-plugin-simulate copied to clipboard

Content-Length mismatch in forwarded request

Open jscheid opened this issue 8 years ago • 0 comments

This is a Bug Report

Description

The request body potentially gets modified (with different white-space) here but the Content-Length header isn't updated to reflect any changes to the length of the body.

This gets verified e.g. by ExpressJS (via this code, AFAICT) and can thus cause downstream errors.

Also, I haven't tested it yet but as far as I can tell this will break for non-JSON payloads. Arguably, the request payload should be passed through as-is by default.

Would you accept a PR for this?

I've noticed there hasn't been any activity in the past six months, what's the current status of this project? It's labeled "experimental" so I understand if it's not a high priority for anybody, just trying to get a sense for how likely this and other PRs would get merged.

jscheid avatar Jan 08 '18 19:01 jscheid