diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nxt_application.c | 2 | ||||
-rw-r--r-- | src/nxt_application.h | 3 | ||||
-rw-r--r-- | src/nxt_python_wsgi.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c index ed661ce7..f45d35c9 100644 --- a/src/nxt_application.c +++ b/src/nxt_application.c @@ -62,7 +62,7 @@ static nxt_int_t nxt_app_http_process_headers(nxt_app_request_t *r); static const nxt_event_conn_state_t nxt_app_delivery_write_state; -static nxt_application_module_t *nxt_app = &nxt_python_module; +nxt_application_module_t *nxt_app; static nxt_thread_mutex_t nxt_app_mutex; static nxt_thread_cond_t nxt_app_cond; diff --git a/src/nxt_application.h b/src/nxt_application.h index ebe45e87..c2619ded 100644 --- a/src/nxt_application.h +++ b/src/nxt_application.h @@ -50,7 +50,8 @@ typedef struct { } nxt_application_module_t; -extern nxt_application_module_t nxt_python_module; +extern nxt_application_module_t *nxt_app; + nxt_int_t nxt_app_http_read_body(nxt_app_request_t *r, u_char *data, diff --git a/src/nxt_python_wsgi.c b/src/nxt_python_wsgi.c index 1b838041..30bd4939 100644 --- a/src/nxt_python_wsgi.c +++ b/src/nxt_python_wsgi.c @@ -242,6 +242,8 @@ nxt_python_wsgi_init(nxt_thread_t *thr, nxt_runtime_t *rt) Py_DECREF(obj); + nxt_app = &nxt_python_module; + return NXT_OK; fail: |