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).
This commit is contained in:
Max Romanov
2017-07-05 13:31:53 +03:00
parent f3107f3896
commit 41e2678110
3 changed files with 98 additions and 65 deletions

View File

@@ -43,6 +43,8 @@ typedef struct {
typedef struct {
nxt_app_request_header_t header;
nxt_app_request_body_t body;
nxt_str_t remote;
} nxt_app_request_t;