Skip to content

Parsing requests with no payload #2576

@matthieusieben

Description

@matthieusieben

When an HTTP request that has "Content-type: plain/text" and no payload is received by hapi, request.payload is an empty object {}. It should be an empty string.

When an HTTP request w/o content-type an no payload is parsed by hapi, request.payload is an empty object {}. It would make more sense if it was null.

Metadata

Metadata

Assignees

Labels

breaking changesChange that can breaking existing codebugBug or defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions