We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62a9f96 commit 5813e52Copy full SHA for 5813e52
lib/MetaCPAN/Server/Role/Request.pm
@@ -6,7 +6,7 @@ around [qw(content_type header)] => sub {
6
my ($orig, $self) = (shift,shift);
7
my $header = $self->$orig(@_);
8
return unless($header);
9
- return $header eq 'application/x-www-form-urlencoded' ? 'application/json' : $header;
+ return $header =~ /^application\/x-www-form-urlencoded/ ? 'application/json' : $header;
10
};
11
12
1;
0 commit comments