Fix response contentLength to byte array