POC of replacing discovery_mode setting with sneakily stashing Host header in the web::uri values returned by nmos::details::resolve_service and using this in a web::http::http_pipeline_stage.
Resolves #357
Using the user info in this way is a bit icky. But the other option is to make lots of places that pass web::uri around pass a pair of the URI with the Host header. This way has the side effect of making the values in the settings look something like this whether doing HTTP or HTTPS:
POC of replacing
discovery_mode
setting with sneakily stashingHost
header in theweb::uri
values returned bynmos::details::resolve_service
and using this in aweb::http::http_pipeline_stage
.Resolves #357
Using the user info in this way is a bit icky. But the other option is to make lots of places that pass
web::uri
around pass a pair of the URI with theHost
header. This way has the side effect of making the values in the settings look something like this whether doing HTTP or HTTPS:If anyone is relying on that property e.g. to populate UI, that would be an unexpected change. :-/
(However, it does also allow the existing
registry_address
setting to be populated in the same way, and that just works too.)