Mercurial > hg > nginx-quic
comparison src/http/ngx_http_parse.c @ 7761:5649079a41f4 quic
Parsing HTTP/3 request body.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 27 Mar 2020 19:41:06 +0300 |
parents | 38c0898b6df7 |
children | e5d4f057a6cb |
comparison
equal
deleted
inserted
replaced
7760:32db41d603cd | 7761:5649079a41f4 |
---|---|
2183 sw_trailer_almost_done, | 2183 sw_trailer_almost_done, |
2184 sw_trailer_header, | 2184 sw_trailer_header, |
2185 sw_trailer_header_almost_done | 2185 sw_trailer_header_almost_done |
2186 } state; | 2186 } state; |
2187 | 2187 |
2188 #if (NGX_HTTP_V3) | |
2189 if (r->http_version == NGX_HTTP_VERSION_30) { | |
2190 return ngx_http_v3_parse_request_body(r, b, ctx); | |
2191 } | |
2192 #endif | |
2193 | |
2188 state = ctx->state; | 2194 state = ctx->state; |
2189 | 2195 |
2190 if (state == sw_chunk_data && ctx->size == 0) { | 2196 if (state == sw_chunk_data && ctx->size == 0) { |
2191 state = sw_after_data; | 2197 state = sw_after_data; |
2192 } | 2198 } |
2367 break; | 2373 break; |
2368 } | 2374 } |
2369 goto invalid; | 2375 goto invalid; |
2370 | 2376 |
2371 } | 2377 } |
2378 } | |
2379 | |
2380 if (b->last_buf) { | |
2381 /* XXX client prematurely closed connection */ | |
2382 return NGX_ERROR; | |
2372 } | 2383 } |
2373 | 2384 |
2374 data: | 2385 data: |
2375 | 2386 |
2376 ctx->state = state; | 2387 ctx->state = state; |