ported the example plugin

This commit is contained in:
Roberto De Ioris
2013-01-20 12:52:58 +01:00
parent 71a5e8b768
commit b7e2eaad0f
2 changed files with 10 additions and 12 deletions
+2 -4
View File
@@ -497,10 +497,8 @@ int uwsgi_request_wsgi(struct wsgi_request *wsgi_req) {
// LOCK THIS PART
wsgi_req->response_size += wsgi_req->socket->proto_write(wsgi_req, wsgi_req->protocol, wsgi_req->protocol_len);
wsgi_req->response_size += wsgi_req->socket->proto_write(wsgi_req, " 500 Internal Server Error\r\n", 28 );
wsgi_req->response_size += wsgi_req->socket->proto_write(wsgi_req, "Content-type: text/plain\r\n\r\n", 28 );
wsgi_req->header_cnt = 1;
uwsgi_500(wsgi_req);
uwsgi_response_write_headers_do(wsgi_req);
/*
sorry that is a hack to avoid the rewrite of PyErr_Print