From: Jason Stephenson Date: Sun, 26 Oct 2014 17:14:26 +0000 (-0400) Subject: Set application/xml content type in NCIP::Dancing. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ed9c4764479796bbaa13c0b0de9a55a7ae0d8717;p=working%2FNCIPServer.git Set application/xml content type in NCIP::Dancing. I tried setting the default in config.yml, and it did not work. Signed-off-by: Jason Stephenson --- diff --git a/lib/NCIP/Dancing.pm b/lib/NCIP/Dancing.pm index 779c5a4..f42fe8e 100644 --- a/lib/NCIP/Dancing.pm +++ b/lib/NCIP/Dancing.pm @@ -6,6 +6,7 @@ our $VERSION = '0.1'; use NCIP; any [ 'get', 'post' ] => '/' => sub { + content_type 'application/xml'; my $ncip = NCIP->new('t/config_sample'); my $xml = param 'xml'; if ( request->is_post ) {