Adding OK Response Code for POST
authoromkar <omkar.m.hegde@intel.com>
Wed, 7 Jan 2015 22:38:14 +0000 (14:38 -0800)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Thu, 22 Jan 2015 15:10:49 +0000 (15:10 +0000)
commita4ac452d13cf33b7f00d3c44d8f96d65aaf91b38
treea2001167881ed33bb447e427ffc58c51403c4288
parenteac553af293a55446f63f09f4f6edede718b6e8e
Adding OK Response Code for POST

Earlier, we were setting response code for POST only if a new resource
is created assuming that the value is by default OK.
TE tests showed error on using different version of Ubuntu.
Modified simpleserver to explicitly add OK status.
Added constructors to OCResourceRequest and
OCResourceResponse classes to avoid undefined behavior.
This Fixes IOT-128.

Change-Id: I13faff2fb254c777ccc8c8979824d53f5111ab3e
Signed-off-by: omkar <omkar.m.hegde@intel.com>
(cherry picked from commit ad7450d4c430e4936969e8e29b0738db9ffeea29)
Reviewed-on: https://gerrit.iotivity.org/gerrit/210
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
resource/examples/simpleserver.cpp
resource/include/OCResourceRequest.h
resource/include/OCResourceResponse.h