Skip to content

Commit

Permalink
Fixed request header check (accept_type -> accept)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpricorn committed May 22, 2010
1 parent 2993e9f commit 5f03aef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Dancer/Serializer/Mutable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ sub _find_content_type {
$content_types{ $params->{content_type} } = 2;
}

if ( $request->{accept_type} ) {
$content_types{ $request->{accept_type} } = 1;
if ( $request->{accept} ) {
$content_types{ $request->{accept} } = 1;
}

$content_types{'application/json'} = 0;
Expand Down Expand Up @@ -116,7 +116,7 @@ the B<content_type> parameter from the URL
=item
the B<accept_type> from the request headers
the B<accept> from the request headers
=item
Expand Down

0 comments on commit 5f03aef

Please sign in to comment.