diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-18 00:21:13 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-18 00:21:13 +0300 |
commit | 47b359388cdf6348238e7fc05770426448049189 (patch) | |
tree | a1841744cbdc7eec82361742d4e157276f6d8c45 /src/nxt_python_wsgi.c | |
parent | dbe68623958fddf4e4d70958fef08d327ce089af (diff) | |
download | unit-47b359388cdf6348238e7fc05770426448049189.tar.gz unit-47b359388cdf6348238e7fc05770426448049189.tar.bz2 |
Python: typo fixed in string processing shortcut.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_python_wsgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_python_wsgi.c b/src/nxt_python_wsgi.c index aabdc0a1..1dcf8bf7 100644 --- a/src/nxt_python_wsgi.c +++ b/src/nxt_python_wsgi.c @@ -437,8 +437,8 @@ nxt_python_run(nxt_task_t *task, nxt_app_rmsg_t *rmsg, nxt_app_wmsg_t *wmsg) /* Shortcut: avoid iterate over result string symbols. */ if (PyBytes_Check(result) != 0) { - size = PyBytes_GET_SIZE(item); - buf = (u_char *) PyBytes_AS_STRING(item); + size = PyBytes_GET_SIZE(result); + buf = (u_char *) PyBytes_AS_STRING(result); nxt_python_write(&run_ctx, buf, size, 1, 1); |