- properly set request response status for wsgi handler (status_line must match status)
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 28 Nov 2013 13:39:31 +0000 (14:39 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 28 Nov 2013 13:39:31 +0000 (14:39 +0100)
apache-mod_python.spec
set-request-response-status.patch [new file with mode: 0644]

index 62ae5585f8f4096e4abaab136b8d7976e4092f6b..78431549e026eb7b0f972c77cdbd43cadb6bb0d8 100644 (file)
@@ -29,6 +29,7 @@ Source1:      %{name}.conf
 Source2:       %{name}3.conf
 Patch0:                %{name}-httpd-not-needed.patch
 Patch1:                no-git.patch
+Patch2:                set-request-response-status.patch
 URL:           http://www.modpython.org/
 BuildRequires: apache-devel >= 2.0.52-7
 BuildRequires: apr-devel >= 1:1.0.0
@@ -229,6 +230,7 @@ prestandan jämfört med den traditionella CGI-metoden.
 %setup -q -n mod_%{mod_name}-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__aclocal}
diff --git a/set-request-response-status.patch b/set-request-response-status.patch
new file mode 100644 (file)
index 0000000..346fffe
--- /dev/null
@@ -0,0 +1,10 @@
+--- mod_python-3.5.0/src/requestobject.c~      2013-11-28 14:12:06.515765224 +0100
++++ mod_python-3.5.0/src/requestobject.c       2013-11-28 14:12:23.809244099 +0100
+@@ -378,6 +378,7 @@
+     }
+     self->request_rec->status_line = apr_pstrdup(self->request_rec->pool, status_line);
++    self->request_rec->status = status;
+     return PyObject_GetAttrString((PyObject*)self, "write");
+ }
This page took 0.083699 seconds and 4 git commands to generate.