diff -Nru python-django-piston-0.2.3/debian/changelog python-django-piston-0.2.3/debian/changelog --- python-django-piston-0.2.3/debian/changelog 2012-04-12 00:42:39.000000000 +0000 +++ python-django-piston-0.2.3/debian/changelog 2012-04-12 01:10:06.000000000 +0000 @@ -1,10 +1,11 @@ -python-django-piston (0.2.3-1chl1~oneiric1) oneiric; urgency=low +python-django-piston (0.2.3-2chl1~oneiric1) oneiric; urgency=low * Build for oneiric + * Add patch for x-www-form-urlencoded ref: https://bitbucket.org/jespern/django-piston/issue/87/split-charset-encoding-form-content-type -- Chris Lea Thu, 12 Apr 2012 00:27:45 +0000 -python-django-piston (0.2.3-1ubuntu1) precise; urgency=low +python-django-piston (0.2.3-1ubuntu1) oneiric; urgency=low * debian/{control,rules}: Transition to dh python2. diff -Nru python-django-piston-0.2.3/debian/patches/02-form-urlencoded.patch python-django-piston-0.2.3/debian/patches/02-form-urlencoded.patch --- python-django-piston-0.2.3/debian/patches/02-form-urlencoded.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-django-piston-0.2.3/debian/patches/02-form-urlencoded.patch 2012-04-12 00:54:44.000000000 +0000 @@ -0,0 +1,12 @@ +diff -urN jespern-django-piston-0.2.3.orig/piston/utils.py jespern-django-piston-0.2.3/piston/utils.py +--- jespern-django-piston-0.2.3.orig/piston/utils.py 2011-11-01 13:52:13.000000000 +0000 ++++ jespern-django-piston-0.2.3/piston/utils.py 2012-04-12 00:53:23.000000000 +0000 +@@ -225,7 +225,7 @@ + """ + type_formencoded = "application/x-www-form-urlencoded" + +- ctype = self.request.META.get('CONTENT_TYPE', type_formencoded) ++ ctype = self.request.META.get('CONTENT_TYPE', type_formencoded).split(";")[0] + + if type_formencoded in ctype: + return None diff -Nru python-django-piston-0.2.3/debian/patches/series python-django-piston-0.2.3/debian/patches/series --- python-django-piston-0.2.3/debian/patches/series 2011-11-12 11:06:26.000000000 +0000 +++ python-django-piston-0.2.3/debian/patches/series 2012-04-12 00:55:00.000000000 +0000 @@ -1 +1,2 @@ 01-fix-oauth-import.diff +02-form-urlencoded.patch