lib/epics/middleware/xmlsig.rb in epics-1.7.2 vs lib/epics/middleware/xmlsig.rb in epics-1.8.0
- old
+ new
@@ -4,15 +4,13 @@
super(app)
@client = options[:client]
end
def call(env)
- @signer = Epics::Signer.new(@client, env["body"])
+ @signer = Epics::Signer.new(@client, env.request_body)
@signer.digest!
@signer.sign!
- env["body"] = @signer.doc.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML)
-
+ env.request_body = @signer.doc.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML)
@app.call(env)
end
-
end