2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-31 14:05:14 +00:00

Disable miniprofiler on pool/zip.

--HG--
branch : 3.2.1-release
This commit is contained in:
edogawaconan
2013-07-17 20:47:44 -07:00
parent 976ae6bfeb
commit f320c67f1e

View File

@@ -340,6 +340,8 @@ class PoolController < ApplicationController
# Generate a ZIP control file for nginx, and redirect to the ZIP.
if CONFIG["pool_zips"]
def zip
# FIXME: should use the correct mime type instead of this hackery.
Rack::MiniProfiler.deauthorize_request
pool = Pool.find(params[:id], :include => [:pool_posts => :post])
@pool_zip = pool.get_zip_data(params)
headers["X-Archive-Files"] = "zip"