Skip to content

Commit

Permalink
Response#charset= uses default_charset when nil is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Jul 13, 2017
1 parent 58f10a3 commit 5e98902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/http/response.rb
Expand Up @@ -252,7 +252,7 @@ def sending_file=(v)
end

# Sets the HTTP character set. In case of +nil+ parameter
# it sets the charset to utf-8.
# it sets the charset to +default_charset+.
#
# response.charset = 'utf-16' # => 'utf-16'
# response.charset = nil # => 'utf-8'
Expand Down

0 comments on commit 5e98902

Please sign in to comment.