jetty.project/examples
Hauke Wulff 8d9c086fa4 FastFileServer throws exception on any GET file due to wrong Content-… (#599)
* FastFileServer throws exception on any GET file due to wrong Content-Length value

Any GET file request, e.g. curl http://localhost:8080/pom.xml
results in FastFileServer returning a "HTTP/1.1 500 Server Error".
The root-cause for the error is the following line in handle()
response.setDateHeader("Content-Length", file.length());
which attempts to set the content-length header using a date-function.
Explicitly setting the response Content-Length in servlet-code.

Signed-off-by: Hauke Wulff <hauk3wu1ff@gmail.com>
Reviewed-by: Simone Bordet <simone.bordet@gmail.com>
2016-06-01 10:46:58 +02:00
..
async-rest [maven-release-plugin] prepare for next development iteration 2016-05-17 17:30:17 -05:00
embedded FastFileServer throws exception on any GET file due to wrong Content-… (#599) 2016-06-01 10:46:58 +02:00
pom.xml [maven-release-plugin] prepare for next development iteration 2016-05-17 17:30:17 -05:00