another destructive commit

This commit is contained in:
Roberto De Ioris
2013-01-19 16:53:31 +01:00
parent 1f8cadb15d
commit 1b0c5bea6c
8 changed files with 109 additions and 148 deletions
+2 -6
View File
@@ -160,13 +160,9 @@ int uwsgi_response_subhandler_wsgi(struct wsgi_request *wsgi_req) {
// return or yield ?
if (PyString_Check((PyObject *)wsgi_req->async_result)) {
char *content = PyString_AsString((PyObject *)wsgi_req->async_result);
size_t content_len = PyString_Size((PyObject *)wsgi_req->async_result);
if (content_len > 0 && !wsgi_req->headers_sent) {
if (uwsgi_python_do_send_headers(wsgi_req)) {
goto clear;
}
}
up.hook_write_string(wsgi_req, (PyObject *) wsgi_req->async_result);
uwsgi.nb_write_hook(wsgi_req, content, content_len);
uwsgi_py_check_write_errors {
uwsgi_py_write_exception(wsgi_req);
}