Latest...
This commit is contained in:
@@ -92,6 +92,13 @@ ngx_http_read_client_request_body(ngx_http_request_t *r,
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (NGX_HTTP_V3)
|
||||
if (r->http_version == NGX_HTTP_VERSION_30) {
|
||||
rc = ngx_http_v3_read_request_body(r);
|
||||
goto done;
|
||||
}
|
||||
#endif
|
||||
|
||||
preread = r->header_in->last - r->header_in->pos;
|
||||
|
||||
if (preread) {
|
||||
@@ -238,6 +245,18 @@ ngx_http_read_unbuffered_request_body(ngx_http_request_t *r)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (NGX_HTTP_V3)
|
||||
if (r->http_version == NGX_HTTP_VERSION_30) {
|
||||
rc = ngx_http_v3_read_unbuffered_request_body(r);
|
||||
|
||||
if (rc == NGX_OK) {
|
||||
r->reading_body = 0;
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (r->connection->read->timedout) {
|
||||
r->connection->timedout = 1;
|
||||
return NGX_HTTP_REQUEST_TIME_OUT;
|
||||
@@ -625,6 +644,12 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (NGX_HTTP_V3)
|
||||
if (r->http_version == NGX_HTTP_VERSION_30) {
|
||||
return NGX_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (ngx_http_test_expect(r) != NGX_OK) {
|
||||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
@@ -920,6 +945,9 @@ ngx_http_test_expect(ngx_http_request_t *r)
|
||||
|| r->http_version < NGX_HTTP_VERSION_11
|
||||
#if (NGX_HTTP_V2)
|
||||
|| r->stream != NULL
|
||||
#endif
|
||||
#if (NGX_HTTP_V3)
|
||||
|| r->connection->quic != NULL
|
||||
#endif
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user