[X2go-Commits] python-tornado.git - master (branch) updated: debian/2.3-2-2-g812f568

X2Go dev team git-admin at x2go.org
Wed Mar 6 01:11:45 CET 2013


The branch, master has been updated
       via  812f568ea0251b35355b634db67b6528d20d9203 (commit)
      from  fb2cbb60f81aeeae0cf2eb5055bc630a9bde38d9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 812f568ea0251b35355b634db67b6528d20d9203
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Mar 6 01:11:31 2013 +0100

    Add patch: parse-body_on_post-method-requests.patch, parse body parameters on POST method requests.

-----------------------------------------------------------------------

Summary of changes:
 debian/changelog                                   |    7 +++++++
 .../parse-body_on_post-method-requests.patch       |   20 ++++++++++++++++++++
 debian/patches/series                              |    1 +
 3 files changed, 28 insertions(+)
 create mode 100644 debian/patches/parse-body_on_post-method-requests.patch

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 39bba34..6404285 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-tornado (2.3-2~bpo60+x2go1) UNRELEASED; urgency=low
+
+  * Add patch: parse-body_on_post-method-requests.patch, parse body parameters
+    on POST method requests.
+
+ -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Wed, 06 Mar 2013 01:08:57 +0100
+
 python-tornado (2.3-2~bpo60) squeeze; urgency=low
 
   * Non-maintainer upload.
diff --git a/debian/patches/parse-body_on_post-method-requests.patch b/debian/patches/parse-body_on_post-method-requests.patch
new file mode 100644
index 0000000..ed65316
--- /dev/null
+++ b/debian/patches/parse-body_on_post-method-requests.patch
@@ -0,0 +1,20 @@
+Description: Scan request.body and handle POSTed parameters similarly to QUERY_STRING parameters
+Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+diff --git a/tornado/wsgi.py b/tornado/wsgi.py
+index e0b11d3..11d9448 100644
+--- a/tornado/wsgi.py
++++ b/tornado/wsgi.py
+@@ -134,6 +134,13 @@ class HTTPRequest(object):
+                 int(self.headers["Content-Length"]))
+         else:
+             self.body = ""
++        if self.body:
++            self.uri += "?" + self.body
++            arguments = parse_qs_bytes(native_str(self.body))
++            for name, values in arguments.iteritems():
++                values = [v for v in values if v]
++                if values:
++                    self.arguments[name] = values
+         self.protocol = environ["wsgi.url_scheme"]
+         self.remote_ip = environ.get("REMOTE_ADDR", "")
+         if environ.get("HTTP_HOST"):
diff --git a/debian/patches/series b/debian/patches/series
index a26c790..7196e09 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 ignore-ca-certificates.patch
 certs-path.patch
+parse-body_on_post-method-requests.patch


hooks/post-receive
-- 
python-tornado.git (python-tornado upstream project)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-tornado.git" (python-tornado upstream project).




More information about the x2go-commits mailing list