| Summary: | Content-length header not set consistently when serving static resources through DefaultServlet | ||
|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Matt Rose <mrose> |
| Component: | server | Assignee: | Greg Wilkins <gregw> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jetty-inbox |
| Version: | 7.2.0 | ||
| Target Milestone: | 7.2.x | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Matt Rose
Expected behaviour is that jetty will always set content-length on static resources. I just tried trunk and it works fine: gregw@Brick: ~ [501] wget -S http://localhost:8080/da.txt --2011-02-23 16:33:25-- http://localhost:8080/da.txt Resolving localhost... ::1, 127.0.0.1 Connecting to localhost|::1|:8080... connected. HTTP request sent, awaiting response... HTTP/1.1 200 OK Date: Wed, 23 Feb 2011 05:33:25 GMT Accept-Ranges: bytes Content-Type: text/plain Content-Length: 61000 Last-Modified: Sun, 05 Dec 2010 21:22:58 GMT Connection: keep-alive Server: Jetty(7.3.1-SNAPSHOT) Length: 61000 (60K) [text/plain] Saving to: `da.txt' 100%[======================================>] 61,000 --.-K/s in 0s 2011-02-23 16:33:25 (447 MB/s) - `da.txt' saved [61000/61000] We have reworked the static content cache since 7.2.0, so I think we may have fixed it then. Please reopen if it fails for you in a 7.3.x release Works in jetty 7.3.1 thanks again for your help, btw. |