diff options
author | Alexander Borisov <alexander.borisov@nginx.com> | 2018-01-31 15:47:00 +0300 |
---|---|---|
committer | Alexander Borisov <alexander.borisov@nginx.com> | 2018-01-31 15:47:00 +0300 |
commit | 960962ddce87f6b401523b4426e8b5c61544ec7b (patch) | |
tree | 3c6fa7d9871701bca291ea5899a98397dacc5a87 /src/nxt_application.c | |
parent | 311db93f006153c309b975942c2415655e2ff417 (diff) | |
download | unit-960962ddce87f6b401523b4426e8b5c61544ec7b.tar.gz unit-960962ddce87f6b401523b4426e8b5c61544ec7b.tar.bz2 |
Added Perl support.
Diffstat (limited to 'src/nxt_application.c')
-rw-r--r-- | src/nxt_application.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c index c9d577cc..7fecd70d 100644 --- a/src/nxt_application.c +++ b/src/nxt_application.c @@ -28,8 +28,6 @@ static nxt_int_t nxt_discovery_module(nxt_task_t *task, nxt_mp_t *mp, nxt_array_t *modules, const char *name); static nxt_app_module_t *nxt_app_module_load(nxt_task_t *task, const char *name); -static nxt_app_type_t nxt_app_parse_type(u_char *p, size_t length); - static void nxt_app_http_release(nxt_task_t *task, void *obj, void *data); @@ -841,7 +839,7 @@ nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name) } -static nxt_app_type_t +nxt_app_type_t nxt_app_parse_type(u_char *p, size_t length) { nxt_str_t str; @@ -858,6 +856,8 @@ nxt_app_parse_type(u_char *p, size_t length) } else if (nxt_str_eq(&str, "go", 2)) { return NXT_APP_GO; + } else if (nxt_str_eq(&str, "perl", 4)) { + return NXT_APP_PERL; } return NXT_APP_UNKNOWN; |