Append accept format and accept version in options.
authorZiran Sun <ziran.sun@samsung.com>
Tue, 2 May 2017 09:52:10 +0000 (10:52 +0100)
committerAshok Babu Channa <ashok.channa@samsung.com>
Thu, 18 May 2017 11:25:14 +0000 (11:25 +0000)
commit0bf6d52d377d5db6135a59c7dca5b1429e35db22
tree4f9cbe46b41c8e96ce6fa38a497f22cb653fcb67
parent010c95a176b6ac56323285ac8b73791335ded030
Append accept format and accept version in options.

If accept format and accept version are not set via option headers,
set them to default value via stack functions.
These values will be passed to rcvdVendorSpecificHeaderOptions through
requestInfo.info.options.

Bug: https://jira.iotivity.org/browse/IOT-1973

Change-Id: I10f589cf3e18fc105640e1a27df5d50aa1b73298
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19535
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
java/common/src/main/java/org/iotivity/base/OcHeaderOption.java
resource/csdk/connectivity/src/caprotocolmessage.c
resource/csdk/stack/samples/linux/SimpleClientServer/occlient.cpp
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp
resource/csdk/stack/src/ocstack.c
resource/include/OCHeaderOption.h
resource/unittests/OCHeaderOptionTest.cpp