mirror of
https://github.com/moebooru/moebooru
synced 2025-09-01 14:35:14 +00:00
Disable miniprofiler on pool/zip.
--HG-- branch : 3.2.1-release
This commit is contained in:
@@ -340,6 +340,8 @@ class PoolController < ApplicationController
|
|||||||
# Generate a ZIP control file for nginx, and redirect to the ZIP.
|
# Generate a ZIP control file for nginx, and redirect to the ZIP.
|
||||||
if CONFIG["pool_zips"]
|
if CONFIG["pool_zips"]
|
||||||
def zip
|
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 = Pool.find(params[:id], :include => [:pool_posts => :post])
|
||||||
@pool_zip = pool.get_zip_data(params)
|
@pool_zip = pool.get_zip_data(params)
|
||||||
headers["X-Archive-Files"] = "zip"
|
headers["X-Archive-Files"] = "zip"
|
||||||
|
Reference in New Issue
Block a user