summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_parse.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2019-09-16 20:17:42 +0300
committerValentin Bartenev <vbart@nginx.com>2019-09-16 20:17:42 +0300
commit64be8717bdc2f0f8f11cbb8d18a0f96d2c24c6d3 (patch)
tree1539675a0756c9356719fd6b679eabea840983dc /src/nxt_http_parse.h
parentb5394c39568d9895d5c84862e7a209b76f98bea9 (diff)
downloadunit-64be8717bdc2f0f8f11cbb8d18a0f96d2c24c6d3.tar.gz
unit-64be8717bdc2f0f8f11cbb8d18a0f96d2c24c6d3.tar.bz2
Configuration: added ability to access object members with slashes.
Now URI encoding can be used to escape "/" in the request path: GET /config/listeners/unix:%2Fpath%2Fto%2Fsocket/
Diffstat (limited to '')
-rw-r--r--src/nxt_http_parse.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_http_parse.h b/src/nxt_http_parse.h
index 42189182..e42ec9a4 100644
--- a/src/nxt_http_parse.h
+++ b/src/nxt_http_parse.h
@@ -68,6 +68,9 @@ struct nxt_http_request_parse_s {
unsigned space_in_target:1;
/* target with "+" */
unsigned plus_in_target:1;
+
+ /* Preserve encoded '/' (%2F) and '%' (%25). */
+ unsigned encoded_slashes:1;
};