Skip to content

Commit ce1fc7f

Browse files
committed
Documentation: the SAML spec states "the content type of the metadata instance MUST be application/samlmetadata+xml"
1 parent f85888e commit ce1fc7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class SamlController < ApplicationController
120120
def metadata
121121
settings = Account.get_saml_settings
122122
meta = OneLogin::RubySaml::Metadata.new
123-
render :xml => meta.generate(settings)
123+
render :xml => meta.generate(settings), :content_type => "application/samlmetadata+xml"
124124
end
125125
end
126126
```

0 commit comments

Comments
 (0)