", r);
- if (strcmp(balancer->sticky, balancer->sticky_path)) {
- ap_rvputs(r, "", balancer->sticky, " | ", balancer->sticky_path,
- NULL);
+ if (balancer->sticky) {
+ if (strcmp(balancer->sticky, balancer->sticky_path)) {
+ ap_rvputs(r, " | ", balancer->sticky, " | ",
+ balancer->sticky_path, NULL);
+ }
+ else {
+ ap_rvputs(r, " | ", balancer->sticky, NULL);
+ }
}
else {
- ap_rvputs(r, " | ", balancer->sticky, NULL);
+ ap_rputs(" | - ", r);
}
ap_rprintf(r, " | %" APR_TIME_T_FMT " | ",
apr_time_sec(balancer->timeout));
diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c
index 1a1d776334..9d9c1fc560 100644
--- a/modules/proxy/mod_proxy_balancer.c
+++ b/modules/proxy/mod_proxy_balancer.c
@@ -758,11 +758,17 @@ static int balancer_handler(request_rec *r)
ap_rputs("\n\n"
"StickySession | Timeout | FailoverAttempts | Method | "
"
\n", r);
- if (strcmp(balancer->sticky, balancer->sticky_path)) {
- ap_rvputs(r, "", balancer->sticky, " | ", balancer->sticky_path, NULL);
+ if (balancer->sticky) {
+ if (strcmp(balancer->sticky, balancer->sticky_path)) {
+ ap_rvputs(r, " | ", balancer->sticky, " | ",
+ balancer->sticky_path, NULL);
+ }
+ else {
+ ap_rvputs(r, " | ", balancer->sticky, NULL);
+ }
}
else {
- ap_rvputs(r, " | ", balancer->sticky, NULL);
+ ap_rputs(" | - ", r);
}
ap_rprintf(r, " | %" APR_TIME_T_FMT " | ",
apr_time_sec(balancer->timeout));