[Jifty-commit] r4546 - jifty/trunk/lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Nov 27 11:07:21 EST 2007
Author: sunnavy
Date: Tue Nov 27 11:07:17 2007
New Revision: 4546
Modified:
jifty/trunk/lib/Jifty/Request.pm
Log:
make a looser check for Content-Type since firefox 3 will append charset stuff to it sometimes
Modified: jifty/trunk/lib/Jifty/Request.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Request.pm (original)
+++ jifty/trunk/lib/Jifty/Request.pm Tue Nov 27 11:07:17 2007
@@ -122,9 +122,9 @@
# Check it for something appropriate
if ($data) {
- if ($ct eq "text/x-json") {
+ if ($ct =~ m{^text/x-json}) {
return $self->from_data_structure(eval{Jifty::JSON::jsonToObj($data)}, $cgi);
- } elsif ($ct eq "text/x-yaml") {
+ } elsif ($ct =~ m{^text/x-yaml}) {
return $self->from_data_structure(eval{Jifty::YAML::Load($data)}, $cgi);
}
}
More information about the Jifty-commit
mailing list