mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-04 16:08:31 +00:00
cast non-bytes arguments to bytes in python3 spool api
This commit is contained in:
@@ -1805,7 +1805,11 @@ PyObject *py_uwsgi_send_spool(PyObject * self, PyObject * args, PyObject *kw) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
#ifdef PYTHREE
|
||||
PyObject *str = PyObject_Bytes(val);
|
||||
#else
|
||||
PyObject *str = PyObject_Str(val);
|
||||
#endif
|
||||
if (!str) {
|
||||
Py_DECREF(zero);
|
||||
uwsgi_buffer_destroy(ub);
|
||||
|
||||
Reference in New Issue
Block a user