From ed9c4764479796bbaa13c0b0de9a55a7ae0d8717 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sun, 26 Oct 2014 13:14:26 -0400 Subject: [PATCH] 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 --- lib/NCIP/Dancing.pm | 1 + 1 file changed, 1 insertion(+) 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 ) { -- 2.11.0