Fixing Content-Length bug