lib/fiona7/scrivito_patches/binary.rb in infopark_fiona7-0.71.1.6 vs lib/fiona7/scrivito_patches/binary.rb in infopark_fiona7-0.71.1.7
- old
+ new
@@ -266,13 +266,13 @@
if !meta_binary.valid?
bad_request
elsif !meta_binary.present?
not_found
else
- set_header('Content-Type', meta_binary.mime_type)
- set_header('Content-Length', meta_binary.length)
- set_header('Cache-Control', 'no-transform,public,max-age=300,s-maxage=900')
+ simple_set_header('Content-Type', meta_binary.mime_type)
+ simple_set_header('Content-Length', meta_binary.length)
+ simple_set_header('Cache-Control', 'no-transform,public,max-age=300,s-maxage=900')
head_ok
end
end
protected
@@ -331,10 +331,10 @@
::CGI.parse(self.request.query_string)["t"]
)
end
end
- def set_header(name, value)
+ def simple_set_header(name, value)
self.response[name] = value
end
# minimal stubs for Rails API below