Set the default MIME type in config.yml based on the Z39.83 spec.
Move the </NCIPMessage> tag to a new include file, footer.inc.
Signed-off-by: Jason Stephenson <jason@sigio.com>
start_tag: '[%'
end_tag: '%]'
+# default MIME type for the responses.
+# (See ANSI/NISO Z39.83-2-2012 Section 7.3, page 13.)
+default_mime_type: "application/xml; charset='utf-8'"
--- /dev/null
+</NCIPMessage>
[% INCLUDE 'includes/header.inc' %]
[% content %]
+
+[% INCLUDE 'includes/footer.inc' %]
<ProblemDetail>[% error_detail | xml %]</ProblemDetail>
</Problem>
</[% messagetype %]>
-</NCIPMessage>
[% myfile = "includes/$messagetype" _ ".inc" %]
[% INCLUDE $myfile %]
</[% messagetype %]>
-</NCIPMessage>