Atmosphere / nettosphere

A Java WebSocket/HTTP server based on the Atmosphere and Netty Framework
http://async-io.org/
321 stars 81 forks source link

Content-Length not set in Http response #139

Closed ricardojlrufino closed 6 years ago

ricardojlrufino commented 6 years ago

I'm having trouble downloading files, where nettosphere does not set the Content-Length

GET /middleware/firmwares/download/330ec4fe-de56-49c5-a29f-e56147870816 HTTP/1.0

< HTTP/1.1 200 OK < Date: Sun, 21 Oct 2018 14:02:58 GMT < Server: Nettosphere/3.0 < Content-Type: application/octet-stream < Cache-Control: no-store, no-cache, must-revalidate < X-Atmosphere-first-request: true < Expires: -1 < Pragma: no-cache < X-Atmosphere-tracking-id: afe72da6-9287-446c-8420-8bcdfe5ad86a < Connection: close

image

ricardojlrufino commented 6 years ago

I am investigating in more detail, because in the localhost is working. Gave problem only on server (online)

ricardojlrufino commented 6 years ago

The fact that it occurs on the server is because it was using apache as a proxy. I made a correction and sent the PR