diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2020-08-25 12:45:21 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2020-08-25 12:45:21 +0300 |
| commit | 693e55a4b232afc6f7b4ba8e25f07decd86baa21 (patch) | |
| tree | d9182b7ca8d9c38b12ab739ac83b70c208f29fa9 /src/http/ngx_http_request_body.c | |
| parent | 4e4d0938b9190713fbb4526d06ee731b6a1800a5 (diff) | |
| download | nginx-693e55a4b232afc6f7b4ba8e25f07decd86baa21.tar.gz nginx-693e55a4b232afc6f7b4ba8e25f07decd86baa21.tar.bz2 | |
HTTP/3: drop the unwanted remainder of the request.
As per HTTP/3 draft 29, section 4.1:
When the server does not need to receive the remainder of the request,
it MAY abort reading the request stream, send a complete response, and
cleanly close the sending part of the stream.
Diffstat (limited to 'src/http/ngx_http_request_body.c')
| -rw-r--r-- | src/http/ngx_http_request_body.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index d0fcb00f4..7a9bbdd5d 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -579,6 +579,12 @@ ngx_http_discard_request_body(ngx_http_request_t *r) } #endif +#if (NGX_HTTP_QUIC) + if (r->connection->qs) { + return NGX_OK; + } +#endif + if (ngx_http_test_expect(r) != NGX_OK) { return NGX_HTTP_INTERNAL_SERVER_ERROR; } |
