Commit 9c98cb1c authored by Stefan Spettel's avatar Stefan Spettel

fix(smf): Make location header case-insensitive

Signed-off-by: default avatarStefan Spettel <stefan.spettel@phine.tech>
parent 568ebdc2
...@@ -280,7 +280,7 @@ sm_policy_status_code smf_pcf_client::create_policy_association( ...@@ -280,7 +280,7 @@ sm_policy_status_code smf_pcf_client::create_policy_association(
true); true);
if (response_code == http_status_code_e::HTTP_STATUS_CODE_201_CREATED) { if (response_code == http_status_code_e::HTTP_STATUS_CODE_201_CREATED) {
std::regex rgx("Location: *(.*)"); std::regex rgx("[L|l]ocation: *(.*)");
std::smatch match; std::smatch match;
if (std::regex_search(response_headers, match, rgx)) { if (std::regex_search(response_headers, match, rgx)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment