File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
actionpack/lib/action_controller/metal Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ module DataStreaming
28
28
# `send_file(params[:path])` allows a malicious user to download any file on
29
29
# your server.
30
30
#
31
- # Options:
31
+ # #### Options:
32
+ #
32
33
# * `:filename` - suggests a filename for the browser to use. Defaults to
33
34
# `File.basename(path)`.
34
35
# * `:type` - specifies an HTTP content type. You can specify either a string
@@ -90,7 +91,8 @@ def send_file(path, options = {}) # :doc:
90
91
# inline data. You may also set the content type, the file name, and other
91
92
# things.
92
93
#
93
- # Options:
94
+ # #### Options:
95
+ #
94
96
# * `:filename` - suggests a filename for the browser to use.
95
97
# * `:type` - specifies an HTTP content type. Defaults to
96
98
# `application/octet-stream`. You can specify either a string or a symbol
Original file line number Diff line number Diff line change @@ -326,7 +326,8 @@ def response_body=(body)
326
326
# or other running data where you don't want the entire file buffered in memory
327
327
# first. Similar to send_data, but where the data is generated live.
328
328
#
329
- # Options:
329
+ # #### Options:
330
+ #
330
331
# * `:filename` - suggests a filename for the browser to use.
331
332
# * `:type` - specifies an HTTP content type. You can specify either a string
332
333
# or a symbol for a registered type with `Mime::Type.register`, for example
You can’t perform that action at this time.
0 commit comments