| 1178 | |
| 1179 | |
| 1180 | PROXY_DECLARE(char *) ap_proxy_update_balancer(apr_pool_t *p, |
| 1181 | proxy_balancer *balancer, |
| 1182 | const char *url) |
| 1183 | { |
| 1184 | apr_uri_t puri; |
| 1185 | if (!url) { |
| 1186 | return NULL; |
| 1187 | } |
| 1188 | if (apr_uri_parse(p, url, &puri) != APR_SUCCESS) { |
| 1189 | return apr_psprintf(p, "unable to parse: %s", url); |
| 1190 | } |
| 1191 | if (puri.path && PROXY_STRNCPY(balancer->s->vpath, puri.path) != APR_SUCCESS) { |
| 1192 | return apr_psprintf(p, "balancer %s front-end virtual-path (%s) too long", |
| 1193 | balancer->s->name, puri.path); |
| 1194 | } |
| 1195 | if (puri.hostname && PROXY_STRNCPY(balancer->s->vhost, puri.hostname) != APR_SUCCESS) { |
| 1196 | return apr_psprintf(p, "balancer %s front-end vhost name (%s) too long", |
| 1197 | balancer->s->name, puri.hostname); |
| 1198 | } |
| 1199 | return NULL; |
| 1200 | } |
| 1201 | |
| 1202 | #define PROXY_UNSET_NONCE '\n' |
| 1203 |
no outgoing calls
no test coverage detected