Skip to content

Commit

Permalink
Fix Phoenix.Controller.send_download/3 :encode option doc (#5754)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarchenkov authored Mar 18, 2024
1 parent b07c130 commit f17c2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix/controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ defmodule Phoenix.Controller do
Defaults to none
* `:offset` - the bytes to offset when reading. Defaults to `0`
* `:length` - the total bytes to read. Defaults to `:all`
* `:encode` - encodes the filename using `URI.encode_www_form/1`.
* `:encode` - encodes the filename using `URI.encode/2`.
Defaults to `true`. When `false`, disables encoding. If you
disable encoding, you need to guarantee there are no special
characters in the filename, such as quotes, newlines, etc.
Expand Down

0 comments on commit f17c2c1

Please sign in to comment.