This fixes the problem that the HTTP server does not yield proper HTTPS urls for
incoming requests.
struct uri_authority auth;
struct http_url base;
- i_zero(&base);
+ if (default_base == NULL)
+ i_zero(&base);
+ else
+ http_url_init_authority_from(&base, default_base);
if (host_header != NULL && *host_header != '\0') {
struct uri_parser *parser;
return -1;
} else {
i_assert(default_base != NULL);
- base = *default_base;
}
if (request_target[0] == '*' && request_target[1] == '\0') {
struct client *client = (struct client *)context;
struct client_request *creq;
+ i_assert(hreq->target.url->have_ssl == tset.ssl);
+
if (debug) {
i_debug("test server: request method=`%s' path=`%s'",
hreq->method, path);