Skip to content

[HttpListener] [Managed] HttpListener.GetContext should fail if Content-Length is specified twice with different values #21929

@hughbe

Description

@hughbe

Following request gives HttpListener a context with the managed implementation but not on Windows. Note that Windows gets a context if the content-length is the same:

GET /path HTTP/1.1
Content-Length: 1
Content-Length: 2

I'm submitting a PR with tests

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions