.format = HTTP_REQUEST_TARGET_FORMAT_ORIGIN,
.url = {
.host = { .name = "example.com" },
+ .path = "/",
},
},
.version_major = 1, .version_minor = 1,
.format = HTTP_REQUEST_TARGET_FORMAT_ORIGIN,
.url = {
.host = { .name = "example.org" },
+ .path = "/",
},
},
.version_major = 1, .version_minor = 1,
.format = HTTP_REQUEST_TARGET_FORMAT_ORIGIN,
.url = {
.host = { .name = "example.org" },
+ .path = "/",
},
},
.version_major = 1, .version_minor = 0,
.url = {
.host = { .name = "api.example.com" },
.port = 8080,
+ .path = "/commit",
},
},
.version_major = 1, .version_minor = 1,
.format = HTTP_REQUEST_TARGET_FORMAT_ABSOLUTE,
.url = {
.host = { .name = "www.example.com" },
+ .path = "/index.php",
},
},
.version_major = 1, .version_minor = 1,
.format = HTTP_REQUEST_TARGET_FORMAT_ABSOLUTE,
.url = {
.host = { .name = "www.example.com" },
+ .path = "/index.html",
},
},
.version_major = 1, .version_minor = 0,
.format = HTTP_REQUEST_TARGET_FORMAT_ABSOLUTE,
.url = {
.host = { .name = "www.example.com" },
+ .path = "/index.html",
},
},
.version_major = 1, .version_minor = 1,
.format = HTTP_REQUEST_TARGET_FORMAT_ORIGIN,
.url = {
.host = { .name = "example.com" },
+ .path = "/",
},
},
.version_major = 1, .version_minor = 1,
.format = HTTP_REQUEST_TARGET_FORMAT_ORIGIN,
.url = {
.host = { .name = "example.com" },
+ .path = "/",
},
},
.version_major = 1, .version_minor = 1,
test_out(t_strdup_printf("request->target.url->have_ssl = %s",
(urlp->have_ssl ? "yes" : "no")),
urlp->have_ssl == urlt->have_ssl);
+ if (urlp->path == NULL || urlt->path == NULL) {
+ test_out(t_strdup_printf("request->target.url->path = %s",
+ urlp->path),
+ urlp->path == urlt->path);
+ } else {
+ test_out(t_strdup_printf("request->target.url->path = %s",
+ urlp->path),
+ strcmp(urlp->path, urlt->path) == 0);
+ }
}
static void