Now it holds "HTTP/3.0". Previously it was empty.
r->request_end = p;
}
+ if (r->http_protocol.data) {
+ r->http_protocol.len = r->request_end - r->http_protocol.data;
+ }
+
r->http_version = r->http_major * 1000 + r->http_minor;
r->state = sw_start;
r->method_name.len = r->method_end - r->method_start;
r->method_name.data = r->method_start;
- if (r->http_protocol.data) {
- r->http_protocol.len = r->request_end - r->http_protocol.data;
- }
-
if (ngx_http_process_request_uri(r) != NGX_OK) {
break;
}
continue;
}
+ ngx_str_set(&r->http_protocol, "HTTP/3.0");
+
len = (r->method_end - r->method_start) + 1
+ (r->uri_end - r->uri_start) + 1
+ sizeof("HTTP/3") - 1;