kaazing / gateway

Kaazing Gateway
Apache License 2.0
141 stars 84 forks source link

`Connection: close` header truncates simple GET request #926

Open jpap opened 7 years ago

jpap commented 7 years ago

Steps to reproduce the problem

The following truncates the server response,

curl -v -H "Connection: close" http://www.websocket.org/css/bootstrap.css

whereas the following does not:

curl -v http://www.websocket.org/css/bootstrap.css

Expected behavior

The server should only close the connection once the full content-length is sent.

Actual behavior

The server truncates the content-length. ;-)

Logs/Wiresharks

See the above cURL commands.

Specifications

Unknown; whatever www.websocket.org is using.