Skip to content

Commit b02401b

Browse files
author
fjg
authored
Fixing encode options keys (symbol required)
1 parent 48dc305 commit b02401b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oauth2/error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def error_message(response_body, opts = {})
2727

2828
error_message = if opts[:error_description] && opts[:error_description].respond_to?(:encoding)
2929
script_encoding = opts[:error_description].encoding
30-
response_body.encode(script_encoding, "invalid" => :replace, "undef" => :replace)
30+
response_body.encode(script_encoding, :invalid => :replace, :undef => :replace)
3131
else
3232
response_body
3333
end

0 commit comments

Comments
 (0)