lib/saml/util.rb in libsaml-2.1.2 vs lib/saml/util.rb in libsaml-2.1.3
- old
+ new
@@ -12,13 +12,14 @@
end
params
end
- def post(location, message)
+ def post(location, message, additional_headers = {})
request = HTTPI::Request.new
request.url = location
+ request.headers.merge! additional_headers
request.headers['Content-Type'] = 'text/xml'
request.body = message
request.auth.ssl.cert_file = Saml::Config.ssl_certificate_file
request.auth.ssl.cert_key_file = Saml::Config.ssl_private_key_file