Skip to content

Commit

Permalink
default POD should be plain text as in returned data
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Apr 28, 2014
1 parent 84d7773 commit 2e6956c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/MetaCPAN/Client/File.pm
Expand Up @@ -29,14 +29,12 @@ sub _known_fields { return \@known_fields }

sub pod {
my $self = shift;
my $ctype = shift || "html";
my $ctype = shift || "plain";
$ctype = lc($ctype);

grep { $ctype eq $_ } qw<html plain x-pod x-markdown>
or croak "wrong content-type for POD requested";

# file/module equivallence makes this
# weird - TODO: sort this out
my $name = $self->module->[0]{name};

require MetaCPAN::Client::Request;
Expand Down

0 comments on commit 2e6956c

Please sign in to comment.