get primary provider name via http://host:$port/_providers/_primary
commit55be76211cca12e07a644809272649176f336f0e
authorJim Meyering <meyering@redhat.com>
Fri, 17 Dec 2010 14:37:14 +0000 (17 15:37 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 23 Dec 2010 21:39:06 +0000 (23 22:39 +0100)
treec13699e19df30800ccc9db32f25c3596179e6415
parent2143b86e49ed10a3f59b08bff562f1a804d8f4d4
get primary provider name via host:$port/_providers/_primary

Get a URL of the form http://.../_providers/_primary
to obtain the name of the primary provider.
* rest.c (proxy_primary_prov): Implement it.
(proxy_add_prov): Prohibit addition of a provider
with the reserved name, "_primary".
* t/basic: Exercise the new functionality.
rest.c
t/basic