added notes for myself people/dhoss/fix-content-type
Devin Austin [Wed, 2 Feb 2011 08:20:42 +0000 (01:20 -0700)]
lib/Web/Dispatch/ParamParser.pm

index f70c366..3062455 100644 (file)
@@ -14,6 +14,9 @@ sub get_unpacked_query_from {
 
 sub get_unpacked_body_from {
   return $_[0]->{+UNPACKED_BODY} ||= do {
+      ## would really like to check to make sure it processes charset stuff appropriately
+      ## add tests for such.  Long story short, I'm looking at making sure we're good for this:
+      ## https://gist.github.com/fc3d095dfd089762ed62
       if (index(lc($_[0]->{CONTENT_TYPE}||''), 'application/x-www-form-urlencoded') >= 0 
         and defined $_[0]->{CONTENT_LENGTH}) {
       $_[0]->{'psgi.input'}->read(my $buf, $_[0]->{CONTENT_LENGTH});