Skip to content

Commit a2ac0cf

Browse files
committed
Fix missed use of nmos::details::make_http_client to unstash the host name for the Host header
1 parent cbb6d0f commit a2ac0cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Development/nmos/node_behaviour.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ namespace nmos
554554
// Location may be a relative (to the request URL) or absolute URL
555555
auto request_uri = web::uri_builder(client.base_uri()).append_path(U("/resource")).to_uri();
556556
auto location_uri = request_uri.resolve_uri(response.headers()[web::http::header_names::location]);
557-
deletion = api_request(web::http::client::http_client(location_uri, client.client_config()), web::http::methods::DEL, gate, token);
557+
auto deletion_client = nmos::details::make_http_client(location_uri, client.client_config());
558+
deletion = api_request(*deletion_client, web::http::methods::DEL, gate, token);
558559
}
559560
else
560561
{

0 commit comments

Comments
 (0)