Fix response content length handling