Commit 7d59a8d7 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

fix issue when there's no content in the response from SMF

parent 729aa14e
......@@ -401,7 +401,12 @@ void amf_n11::curl_http_client(std::string remoteUri, std::string jsonData, std:
}
if (httpCode != 200 && httpCode != 201 && httpCode != 204) {
is_response_ok = false;
//TODO: error if there's no content in the response
if (response.size() < 1) {
Logger::amf_n11().error("There's no content in the response");
//TODO: send context response error
return;
}
if (!(multipart_parser(response, jsonData, n1sm, n2sm))) {
Logger::amf_n11().error("Could not get the cause from the response");
}
......
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