Skip to content

Make env['rack.input'] optional if no entity body is given. #1995

@ioquatix

Description

@ioquatix

See #1994 for more context.

Most requests don't have an entity body.

It's difficult to detect this condition except for reading from the input stream provided.

But this may fail after the fact if there is no entity body.

I feel like it would be more efficient and transparent if we simply did not set env['rack.input'] if there is no entity body.

See #1994 (comment) for an example use case.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions