diff options
author | Zhidao HONG <z.hong@f5.com> | 2024-06-11 17:59:00 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2024-06-20 10:39:55 +0800 |
commit | 64f4c78bf441fa9e021d905a03d374d0a9e05e8d (patch) | |
tree | e4d12f7eb8a085ae8f58f313a98c761d6594660a /src/nxt_router.h | |
parent | f80a36a60d61ecd5621d33af37aed35fd074f982 (diff) | |
download | unit-64f4c78bf441fa9e021d905a03d374d0a9e05e8d.tar.gz unit-64f4c78bf441fa9e021d905a03d374d0a9e05e8d.tar.bz2 |
http: Support chunked request bodies
This is a temporary support for chunked request bodies by converting
to Content-Length. This allows for processing of such requests until
a more permanent solution is developed.
A new configuration option "chunked_transform" has been added to enable
this feature. The option can be set as follows:
{
"settings": {
"chunked_transform": true
}
}
By default, this option is set to false, which retains the current
behaviour of rejecting chunked requests with a '411 Length Required'
status code.
Please note that this is an experimental implementation.
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_router.h')
-rw-r--r-- | src/nxt_router.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_router.h b/src/nxt_router.h index 3e523001..cfc7258c 100644 --- a/src/nxt_router.h +++ b/src/nxt_router.h @@ -208,6 +208,7 @@ typedef struct { uint8_t discard_unsafe_fields; /* 1 bit */ uint8_t server_version; /* 1 bit */ + uint8_t chunked_transform; /* 1 bit */ nxt_http_forward_t *forwarded; nxt_http_forward_t *client_ip; |