Set application/xml content type in NCIP::Dancing.
authorJason Stephenson <jason@sigio.com>
Sun, 26 Oct 2014 17:14:26 +0000 (13:14 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 26 Oct 2014 17:14:26 +0000 (13:14 -0400)
I tried setting the default in config.yml, and it did not work.

Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/Dancing.pm

index 779c5a4..f42fe8e 100644 (file)
@@ -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 ) {