summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-01-19 19:45:11 +0300
committerValentin Bartenev <vbart@nginx.com>2018-01-19 19:45:11 +0300
commitd1f29ed77edd5833d1e84f20ed7032377d5de960 (patch)
treec87fad5bc440b170ca80a472a436632d0db9a570
parent01ec9a5dbacf67f8b90bac556a06ac5f02c15a8c (diff)
downloadunit-d1f29ed77edd5833d1e84f20ed7032377d5de960.tar.gz
unit-d1f29ed77edd5833d1e84f20ed7032377d5de960.tar.bz2
Python: fixed the "wsgi.errors" environment variable name.
This closes issue #76 on GitHub.
-rw-r--r--src/nxt_python_wsgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_python_wsgi.c b/src/nxt_python_wsgi.c
index ccdf49a5..3f2a4a14 100644
--- a/src/nxt_python_wsgi.c
+++ b/src/nxt_python_wsgi.c
@@ -582,10 +582,10 @@ nxt_python_create_environ(nxt_task_t *task)
goto fail;
}
- if (nxt_slow_path(PyDict_SetItemString(environ, "wsgi.error", err) != 0))
+ if (nxt_slow_path(PyDict_SetItemString(environ, "wsgi.errors", err) != 0))
{
nxt_log_alert(task->log,
- "Python failed to set the \"wsgi.error\" environ value");
+ "Python failed to set the \"wsgi.errors\" environ value");
goto fail;
}