We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2cbeeac + 80de242 commit 37d013bCopy full SHA for 37d013b
spec/grape/integration/rack_sendfile_spec.rb
@@ -4,7 +4,7 @@
4
subject do
5
content_object = file_object
6
app = Class.new(Grape::API) do
7
- use Rack::Sendfile
+ use Rack::Sendfile, 'X-Accel-Redirect'
8
format :json
9
get do
10
if content_object.is_a?(String)
@@ -17,7 +17,6 @@
17
18
options = {
19
method: Rack::GET,
20
- 'HTTP_X_SENDFILE_TYPE' => 'X-Accel-Redirect',
21
'HTTP_X_ACCEL_MAPPING' => '/accel/mapping/=/replaced/'
22
}
23
env = Rack::MockRequest.env_for('/', options)
0 commit comments