1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

*) mod_htt2: recent small improvements from the github/icing/mod_h2

- conditional use of ap_thread* to allow compilation on older versions
     - fixed checks on CONNECT requests



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908079 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Eissing
2023-03-05 09:42:53 +00:00
parent d73a6e1490
commit d3607972c8
3 changed files with 14 additions and 2 deletions

View File

@@ -381,6 +381,11 @@ request_rec *h2_create_request_rec(const h2_request *req, conn_rec *c,
r->the_request = apr_psprintf(r->pool, "%s %s HTTP/2.0",
req->method, req->path);
}
else if (!apr_strnatcasecmp("CONNECT", req->method)) {
/* CONNECT MUST NOT have scheme or path */
r->the_request = apr_psprintf(r->pool, "%s %s HTTP/2.0",
req->method, req->authority);
}
else {
/* We should only come here on a request that is errored already.
* create a request line that passes parsing, we'll die anyway.