wininet: correct the case where Content-Length is set as well as Transer-Encoding = chunked

Hans Leidekker hans at it.vu.nl
Thu Apr 17 14:26:30 CDT 2008


On Thursday 17 April 2008 20:05:41 Aric Stewart wrote:

> +            /* Correct the case where both a Content-Length and Transfer-encoding = chuncked are set */
> +
> +            dwBufferSize = sizeof(encoding);
> +            if (HTTP_HttpQueryInfoW(lpwhr, HTTP_QUERY_TRANSFER_ENCODING, encoding, &dwBufferSize, NULL) &&
> +                !strcmpiW(encoding, szChunked))
> +            {
> +                lpwhr->dwContentLength = -1;
> +            }

I think the right thing to do is to strip the Transfer-Encoding
header from the request because we don't support chunked transfers
in the sending direction. Would that work for you?

 -Hans



More information about the wine-devel mailing list