diff options
author | Jenny Shen <jenny.shen@shopify.com> | 2023-07-23 19:18:44 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-07-28 16:08:11 +0000 |
commit | 17b50cdb68ce016caee0d6fef8e8438a5bf5addb (patch) | |
tree | 82fe775024309a6cf2a431760594c261327bb943 /lib | |
parent | db80e947a382a6a9ef2295e81f5b97c6a8ecbce7 (diff) | |
download | ruby-17b50cdb68ce016caee0d6fef8e8438a5bf5addb.tar.gz |
[rubygems/rubygems] Add charset to Webauthn response content-type
https://github.com/rubygems/rubygems/commit/442a3e8f37
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb b/lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb index c0e2778485..7709a8fef3 100644 --- a/lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb +++ b/lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb @@ -81,7 +81,7 @@ module Gem::GemcutterUtilities def add_body return unless body - @http_response["content-type"] = "text/plain" + @http_response["content-type"] = "text/plain; charset=utf-8" @http_response["content-length"] = body.bytesize @http_response.instance_variable_set(:@body, body) end |