store content type in env["wd.format"] instead of params[:format]