Permalink
Browse files

Add content_type()

  • Loading branch information...
1 parent f27c618 commit 55d65713a971adccf7ddcef3755952d63101b181 Steven Haryanto (on PC) committed Mar 29, 2012
Showing with 4 additions and 0 deletions.
  1. +2 −0 lib/Data/Format/Pretty/CompactJSON.pm
  2. +2 −0 lib/Data/Format/Pretty/JSON.pm
@@ -14,6 +14,8 @@ my $json = JSON->new->utf8->allow_nonref;
# VERSION
+sub content_type { "application/json" }
+
sub format_pretty {
my ($data, $opts0) = @_;
my %opts = $opts0 ? %$opts0 : ();
@@ -14,6 +14,8 @@ my $json = JSON->new->utf8->allow_nonref;
# VERSION
+sub content_type { "application/json" }
+
sub format_pretty {
my ($data, $opts) = @_;
$opts //= {};

0 comments on commit 55d6571

Please sign in to comment.