fixing request.getContent() issue