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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user