diff options
author | Zhidao HONG <z.hong@f5.com> | 2021-11-05 22:56:34 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2021-11-05 22:56:34 +0800 |
commit | aee908bcbd6ae160ab8e470ea6a373148649968b (patch) | |
tree | 99baed6d733282fd4cb537478c9ebf7a4ed194a8 /src/nxt_conf_validation.c | |
parent | 1260add0f5cacd5849640f7ee335f3ace97ade2c (diff) | |
download | unit-aee908bcbd6ae160ab8e470ea6a373148649968b.tar.gz unit-aee908bcbd6ae160ab8e470ea6a373148649968b.tar.bz2 |
Router: matching query string support.
The "query" option matches decoded arguments, including plus ('+') to
space (' '). Like "uri", it can be a string or an array of strings.
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r-- | src/nxt_conf_validation.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c index 5d1cdf6d..3f068bbb 100644 --- a/src/nxt_conf_validation.c +++ b/src/nxt_conf_validation.c @@ -590,6 +590,11 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_match_members[] = { .validator = nxt_conf_vldt_match_encoded_patterns, .u.string = "uri" }, { + .name = nxt_string("query"), + .type = NXT_CONF_VLDT_STRING | NXT_CONF_VLDT_ARRAY, + .validator = nxt_conf_vldt_match_encoded_patterns, + .u.string = "query" + }, { .name = nxt_string("arguments"), .type = NXT_CONF_VLDT_OBJECT | NXT_CONF_VLDT_ARRAY, .validator = nxt_conf_vldt_match_encoded_patterns_sets, |