Adding OK Response Code for POST
authoromkar <omkar.m.hegde@intel.com>
Wed, 7 Jan 2015 22:38:14 +0000 (14:38 -0800)
committeromkar <omkar.m.hegde@intel.com>
Thu, 8 Jan 2015 21:23:17 +0000 (13:23 -0800)
commitad7450d4c430e4936969e8e29b0738db9ffeea29
treeafa6a51c105df8e0177b6f6ee6dff2f80af53a06
parentfcb4f9a5e9dd9b8b76bc67ddfa56b19d138fc5b6
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>
resource/examples/simpleserver.cpp
resource/include/OCResourceRequest.h
resource/include/OCResourceResponse.h