Default the binding template property.
[shibboleth/cpp-opensaml.git] / saml / saml1 / binding / impl / SAML1POSTEncoder.cpp
index 2803a85..d649db7 100644 (file)
@@ -81,7 +81,7 @@ namespace opensaml {
 static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
 
 SAML1POSTEncoder::SAML1POSTEncoder(const DOMElement* e, const XMLCh* ns)
-    : m_template(XMLHelper::getAttrString(e, nullptr, _template, ns))
+    : m_template(XMLHelper::getAttrString(e, "bindingTemplate.html", _template, ns))
 {
     if (m_template.empty())
         throw XMLToolingException("SAML1POSTEncoder requires template XML attribute.");