Commit c03befc9 authored by Todd Malsbary's avatar Todd Malsbary Committed by Habib Virji

Return correct entity handler result for Get and Publish requests to

RD server.

Prior to this fix, rdEntityHandler would always return OC_EH_ERROR.

Change-Id: I1099ffe19e200982562cd9de4f7c97e173a71431
Signed-off-by: default avatarTodd Malsbary <todd.malsbary@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14473Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarHabib Virji <habib.virji@samsung.com>
parent 1e5b81a1
......@@ -103,7 +103,7 @@ static OCEntityHandlerResult handlePublishRequest(const OCEntityHandlerRequest *
return OC_EH_ERROR;
}
OIC_LOG_V(DEBUG, TAG, "Received OC_REST_PUT from client with query: %s.", ehRequest->query);
OIC_LOG_V(DEBUG, TAG, "Received OC_REST_POST from client with query: %s.", ehRequest->query);
OCRepPayload *payload = (OCRepPayload *)ehRequest->payload;
OCRepPayload *resPayload = NULL;
......@@ -166,10 +166,10 @@ static OCEntityHandlerResult rdEntityHandler(OCEntityHandlerFlag flag,
{
case OC_REST_GET:
case OC_REST_DISCOVER:
handleGetRequest(ehRequest);
ehRet = handleGetRequest(ehRequest);
break;
case OC_REST_POST:
handlePublishRequest(ehRequest);
ehRet = handlePublishRequest(ehRequest);
break;
case OC_REST_DELETE:
ehRet = handleDeleteRequest(ehRequest);
......
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