<empty commit message>

This commit is contained in:
zribiahmed 2013-02-12 17:20:51 +00:00
parent ddb41f94fb
commit ee065934cf
2 changed files with 5 additions and 3 deletions

View file

@ -228,10 +228,7 @@ int cwmp_schedule_rpc (struct cwmp *cwmp, struct session *session)
if (xml_send_message(cwmp, session, NULL))
goto retry;
if (!session->tree_in)
{
CWMP_LOG (INFO,"Receive HTTP 204 No Content");
goto success;
}
if (xml_handle_message(session))
goto retry;

View file

@ -192,6 +192,11 @@ http_send_message(struct cwmp *cwmp, char *msg_out, char **msg_in)
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &http_code);
if(http_code == 204)
{
CWMP_LOG (INFO,"Receive HTTP 204 No Content");
}
if (http_code != 200 && http_code != 204)
goto error;