set transfer-encoding equal to content-encoding when a response is not chunked