summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.c
diff options
context:
space:
mode:
authorAlexander Borisov <alexander.borisov@nginx.com>2018-01-31 15:47:00 +0300
committerAlexander Borisov <alexander.borisov@nginx.com>2018-01-31 15:47:00 +0300
commit960962ddce87f6b401523b4426e8b5c61544ec7b (patch)
tree3c6fa7d9871701bca291ea5899a98397dacc5a87 /src/nxt_application.c
parent311db93f006153c309b975942c2415655e2ff417 (diff)
downloadunit-960962ddce87f6b401523b4426e8b5c61544ec7b.tar.gz
unit-960962ddce87f6b401523b4426e8b5c61544ec7b.tar.bz2
Added Perl support.
Diffstat (limited to 'src/nxt_application.c')
-rw-r--r--src/nxt_application.c6
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;