geosolutions-it/http-proxy — Issue #14: HTTPProxy "eats" some contents bytes, content-lenght won't match
Author: etj
Created: 2012-02-17 12:22:03+00:00
State: open

Not all of the input bytes are returned to the caller, so the content-lenght header will not match the real content.
It may bring to:
- errors on client side
- timeout waiting for the missing bytes
- completely corrupted binary contents.

Observed in a WMS getCapability on Comune-FI: the CR were filtered out.

Refs here:
https://github.com/geosolutions-it/http-proxy/blob/master/src/main/java/it/geosolutions/httpproxy/HTTPProxy.java#L709

while ((read = inputStreamServerResponse.read()) > 0) {
if (Utils.escapeHtmlFull(read) > 0) {
outputStreamClientResponse.write(read);
}
}