req->path = apr_uri_unparse(r->pool, &r->parsed_uri,
APR_URI_UNP_OMITSITEPART);
- if (!ap_strchr_c(req->authority, ':') && r->server) {
- req->authority = apr_psprintf(r->pool, "%s:%d", req->authority,
- (int)r->server->port);
+ if (!ap_strchr_c(req->authority, ':') && r->server && r->server->port) {
+ apr_port_t defport = apr_uri_port_of_scheme(req->scheme);
+ if (defport != r->server->port) {
+ /* port info missing and port is not default for scheme: append */
+ req->authority = apr_psprintf(r->pool, "%s:%d", req->authority,
+ (int)r->server->port);
+ }
}
AP_DEBUG_ASSERT(req->scheme);
* @macro
* Version number of the h2 module as c string
*/
-#define MOD_HTTP2_VERSION "1.0.10"
+#define MOD_HTTP2_VERSION "1.0.11-DEV"
/**
* @macro
* release. This is a 24 bit number with 8 bits for major number, 8 bits
* for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
*/
-#define MOD_HTTP2_VERSION_NUM 0x01000a
+#define MOD_HTTP2_VERSION_NUM 0x01000b
#endif /* mod_h2_h2_version_h */