Skip to content

Commit

Permalink
Fix missed use of nmos::details::make_http_client to unstash the host…
Browse files Browse the repository at this point in the history
… name for the Host header
  • Loading branch information
garethsb committed Feb 23, 2024
1 parent cbb6d0f commit a2ac0cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Development/nmos/node_behaviour.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,8 @@ namespace nmos
// Location may be a relative (to the request URL) or absolute URL
auto request_uri = web::uri_builder(client.base_uri()).append_path(U("/resource")).to_uri();
auto location_uri = request_uri.resolve_uri(response.headers()[web::http::header_names::location]);
deletion = api_request(web::http::client::http_client(location_uri, client.client_config()), web::http::methods::DEL, gate, token);
auto deletion_client = nmos::details::make_http_client(location_uri, client.client_config());
deletion = api_request(*deletion_client, web::http::methods::DEL, gate, token);
}
else
{
Expand Down

0 comments on commit a2ac0cf

Please sign in to comment.