summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_js.h
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2024-10-14 15:10:06 +0800
committerZhidao HONG <z.hong@f5.com>2024-10-22 13:40:50 +0800
commitde430edae585d40dacec20dcf4324d7c0ee8fba1 (patch)
treef8f87e2a5c456b9608c81cadf61dd04cf72e2e6e /src/nxt_js.h
parentf6036bbc7c798133e95d107ef99f289281366b0d (diff)
downloadunit-de430edae585d40dacec20dcf4324d7c0ee8fba1.tar.gz
unit-de430edae585d40dacec20dcf4324d7c0ee8fba1.tar.bz2
Add flag for newline control in access log entries
This commit introduces a new flag to control the addition of newline characters in access log entries. This is prepared for fixing the issue where log entries lack newlines when using JS configuration.
Diffstat (limited to 'src/nxt_js.h')
-rw-r--r--src/nxt_js.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_js.h b/src/nxt_js.h
index 48f036b8..53262563 100644
--- a/src/nxt_js.h
+++ b/src/nxt_js.h
@@ -28,7 +28,7 @@ void nxt_js_conf_release(nxt_js_conf_t *jcf);
void nxt_js_set_proto(nxt_js_conf_t *jcf, njs_external_t *proto, nxt_uint_t n);
nxt_int_t nxt_js_add_module(nxt_js_conf_t *jcf, nxt_str_t *name,
nxt_str_t *text);
-nxt_js_t *nxt_js_add_tpl(nxt_js_conf_t *jcf, nxt_str_t *str, nxt_bool_t strz);
+nxt_js_t *nxt_js_add_tpl(nxt_js_conf_t *jcf, nxt_str_t *str, nxt_uint_t flags);
nxt_int_t nxt_js_compile(nxt_js_conf_t *jcf);
nxt_int_t nxt_js_test(nxt_js_conf_t *jcf, nxt_str_t *str, u_char *error);
nxt_int_t nxt_js_call(nxt_task_t *task, nxt_js_conf_t *jcf,