diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-05 13:31:53 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-05 13:31:53 +0300 |
commit | 41e2678110a575dfa751c284c393f42088760a0a (patch) | |
tree | ac75e443be3aa91f2425499d9f6dd45119583311 /src/nxt_router.c | |
parent | f3107f3896c199a5bc166f57ccd9fef2823ccdaf (diff) | |
download | unit-41e2678110a575dfa751c284c393f42088760a0a.tar.gz unit-41e2678110a575dfa751c284c393f42088760a0a.tar.bz2 |
Python WSGI: SERVER_NAME, SERVER_PORT fixed, REMOTE_ADDR introduced.
Shortcut: do not iterate over String (or Bytes) return object.
Call 'close()' for return object (if present).
Diffstat (limited to '')
-rw-r--r-- | src/nxt_router.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c index 77d830be..34d163dc 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -1105,6 +1105,9 @@ nxt_router_conn_http_header_parse(nxt_task_t *task, void *obj, void *data) } c->socket.data = ap; + + ap->r.remote.start = nxt_sockaddr_address(c->remote); + ap->r.remote.length = c->remote->address_length; } h = &ap->r.header; |