about summary refs log tree commit diff
path: root/spec/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-05-02 22:28:46 +0200
committerGitHub <noreply@github.com>2018-05-02 22:28:46 +0200
commit28bd4b98004d1f3e28f8aae5039c57a53f17d7b0 (patch)
treee7f7c864a0dba8d5fcf4d3e1f5567b64155f67c7 /spec/controllers
parent658cbc94255a91453fbadd175cd45ad15efcbdf3 (diff)
Serialize webfinger XML with Ox instead of Nokogiri (#7319)
25ms -> 0.5ms
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/well_known/host_meta_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/well_known/host_meta_controller_spec.rb b/spec/controllers/well_known/host_meta_controller_spec.rb
index 8147e8f61..b43ae19d8 100644
--- a/spec/controllers/well_known/host_meta_controller_spec.rb
+++ b/spec/controllers/well_known/host_meta_controller_spec.rb
@@ -10,7 +10,7 @@ describe WellKnown::HostMetaController, type: :controller do
       expect(response).to have_http_status(200)
       expect(response.content_type).to eq 'application/xrd+xml'
       expect(response.body).to eq <<XML
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
   <Link rel="lrdd" type="application/xrd+xml" template="https://cb6e6126.ngrok.io/.well-known/webfinger?resource={uri}"/>
 </XRD>