nxt_python_asgi.c (2172:282123ba4f7b) nxt_python_asgi.c (2176:7f691279f318)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6
7#include <python/nxt_python.h>
8

--- 651 unchanged lines hidden (view full) ---

660 if (nxt_slow_path(v == NULL)) {
661 nxt_unit_req_alert(req, "Python failed to create 'query' string");
662 goto fail;
663 }
664
665 SET_ITEM(scope, query_string, v)
666 Py_DECREF(v);
667
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6
7#include <python/nxt_python.h>
8

--- 651 unchanged lines hidden (view full) ---

660 if (nxt_slow_path(v == NULL)) {
661 nxt_unit_req_alert(req, "Python failed to create 'query' string");
662 goto fail;
663 }
664
665 SET_ITEM(scope, query_string, v)
666 Py_DECREF(v);
667
668 v = nxt_py_asgi_create_ip_address(&r->remote, r->remote_length, 0);
668 v = nxt_py_asgi_create_address(&r->remote, r->remote_length, 0);
669 if (nxt_slow_path(v == NULL)) {
670 nxt_unit_req_alert(req, "Python failed to create 'client' pair");
671 goto fail;
672 }
673
674 SET_ITEM(scope, client, v)
675 Py_DECREF(v);
676

--- 828 unchanged lines hidden ---
669 if (nxt_slow_path(v == NULL)) {
670 nxt_unit_req_alert(req, "Python failed to create 'client' pair");
671 goto fail;
672 }
673
674 SET_ITEM(scope, client, v)
675 Py_DECREF(v);
676

--- 828 unchanged lines hidden ---