Bug #492
closedFalse Content-Length on some 30x redirects
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.
Files
Updated by jan about 19 years ago
- Status changed from New to Fixed
- Resolution set to fixed
fixed in changeset r985 by passing the content trough to the client as expected. The content-length is taken from the backend and passed through.
Also available in: Atom