Changed request.content_length to int