mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 13:11:33 +00:00
clear exception on PyObject_CheckReadBuffer error
This commit is contained in:
@@ -31,6 +31,7 @@ int uwsgi_python_send_body(struct wsgi_request *wsgi_req, PyObject *chunk) {
|
||||
#else
|
||||
if (PyObject_CheckReadBuffer(chunk)) {
|
||||
if (!PyObject_AsCharBuffer(chunk, (const char **) &content, (Py_ssize_t *) &content_len)) {
|
||||
PyErr_Clear();
|
||||
goto found;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user