Ticket #492 (closed defect: fixed)
False Content-Length on some 30x redirects
| Reported by: | conny | Owned by: | jan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | mod_proxy | Version: | 1.4.9 |
| Severity: | minor | Keywords: | |
| Cc: | Blocked By: | ||
| Need User Feedback: | Blocking: |
Description
Consider the following request:
GET /foo HTTP/1.1 Host: baz
Say /foo is requested via mod_proxy which forwards the request to a backend where the /foo directory exists: 302 Moved Permanently -> "/foo/".
At least one popular web server out there insists on sending a short faux-HTML fragment with an <A>-link in addition to the "Location: ..." header. Therefore Content-Length might be > 0 on some requests. Lighttpd on the other hand takes a short route and simply skips sending the content part when it sees some status codes.
If we're gonna ignore any eventual content part, then we should make sure that the header is set correspondingly.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

