Skip to content

Commit

Permalink
Fix for Encode 2.40
Browse files Browse the repository at this point in the history
  • Loading branch information
theory authored and gisle committed Sep 20, 2010
1 parent d118cc0 commit 0eedbf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/HTTP/Message.pm
Expand Up @@ -271,7 +271,7 @@ sub content_charset
return "US-ASCII" unless /[\x80-\xFF]/;
require Encode;
eval {
Encode::decode_utf8($_, Encode::FB_CROAK());
Encode::decode_utf8($_, Encode::FB_CROAK() | Encode::LEAVE_SRC());
};
return "UTF-8" unless $@;
return "ISO-8859-1";
Expand Down

0 comments on commit 0eedbf1

Please sign in to comment.