Fix for Jira [IOT-1424]
authorVeeraj Khokale <veeraj.sk@samsung.com>
Mon, 10 Oct 2016 08:34:54 +0000 (14:04 +0530)
committerUze Choi <uzchoi@samsung.com>
Thu, 23 Mar 2017 09:39:19 +0000 (09:39 +0000)
commit344a35de6818d2a5420ca722949423bcfa0b1d54
treee2abd9d1724b1d253788da792d0cb554222529ec
parent7fedb4f42402003cf6c14a7a38995e697fa92786
Fix for Jira [IOT-1424]

1. Modified CHPGetOCContentType() and CHPGetOptionID() to
internally duplicate the string parameter passed and
work on this copy, thereby maintaining const correctness.
2. Also modified unit test to pass "application/cbor" as
http content type.

Change-Id: Ic0ea5704ddff20dc67086296e54775ef8d677d69
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13013
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit cac65bc77127b61056783bdd1178263518682912)
Reviewed-on: https://gerrit.iotivity.org/gerrit/15275
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/coap-http-proxy/src/CoapHttpMap.c
service/coap-http-proxy/unittests/CoAPHttpUnitTest.cpp