summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/python/nxt_python_asgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/nxt_python_asgi.c b/src/python/nxt_python_asgi.c
index 5882491b..8f300b53 100644
--- a/src/python/nxt_python_asgi.c
+++ b/src/python/nxt_python_asgi.c
@@ -478,7 +478,7 @@ nxt_py_asgi_request_handler(nxt_unit_request_info_t *req)
}
send = PyObject_GetAttrString(asgi, "send");
- if (nxt_slow_path(receive == NULL)) {
+ if (nxt_slow_path(send == NULL)) {
nxt_unit_req_alert(req, "Python failed to get 'send' method");
nxt_unit_request_done(req, NXT_UNIT_ERROR);
@@ -486,7 +486,7 @@ nxt_py_asgi_request_handler(nxt_unit_request_info_t *req)
}
done = PyObject_GetAttrString(asgi, "_done");
- if (nxt_slow_path(receive == NULL)) {
+ if (nxt_slow_path(done == NULL)) {
nxt_unit_req_alert(req, "Python failed to get '_done' method");
nxt_unit_request_done(req, NXT_UNIT_ERROR);