Rewrite publish to use request.