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

mod_h2 compiles warning free in maintainer-mode

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1696592 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Eissing
2015-08-19 14:13:49 +00:00
parent 8ddd55a110
commit c5b0b54de9
5 changed files with 4 additions and 89 deletions

View File

@@ -58,7 +58,7 @@ apr_status_t h2_request_rwrite(h2_request *req, request_rec *r, h2_mplx *m)
req->method = r->method;
req->authority = r->hostname;
req->path = r->uri;
if (!strchr(req->authority, ':') && r->parsed_uri.port_str) {
if (!strchr((char *)req->authority, ':') && r->parsed_uri.port_str) {
req->authority = apr_psprintf(req->pool, "%s:%s", req->authority,
r->parsed_uri.port_str);
}