[Python-modules-commits] [python-restless] 03/07: add patch to fix #880838

Wolfgang Borgert debacle at moszumanska.debian.org
Sun Nov 12 12:02:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository python-restless.

commit f56398ae5394cedf8371d84f87f628b110c36f30
Author: W. Martin Borgert <debacle at debian.org>
Date:   Sun Nov 12 12:39:07 2017 +0100

    add patch to fix #880838
---
 debian/patches/charset.patch | 19 +++++++++++++++++++
 debian/patches/series        |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/charset.patch b/debian/patches/charset.patch
new file mode 100644
index 0000000..0c3b35a
--- /dev/null
+++ b/debian/patches/charset.patch
@@ -0,0 +1,19 @@
+Description: add charset to Response constructor
+Author: W. Martin Borgert <debacle at debian.org>
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/880838
+Last-Update: 2017-11-12
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/restless/pyr.py
++++ b/restless/pyr.py
+@@ -34,7 +34,8 @@
+             content_type = 'text/plain'
+         else:
+             content_type = 'application/json'
+-        resp = Response(data, status_code=status, content_type=content_type)
++        resp = Response(data, status_code=status, content_type=content_type,
++                        charset='UTF-8')
+         return resp
+ 
+     @classmethod
diff --git a/debian/patches/series b/debian/patches/series
index dd98f88..61cdfe5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+charset.patch
 0001-fix-test-fail.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-restless.git



More information about the Python-modules-commits mailing list