Sync CACloneResponseInfo with CAResponseResult_t. 81/22881/2
authorTodd Malsbary <todd.malsbary@intel.com>
Tue, 17 Oct 2017 21:21:50 +0000 (14:21 -0700)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 20 Oct 2017 21:43:44 +0000 (21:43 +0000)
Bug: https://jira.iotivity.org/browse/IOT-2819
Change-Id: I43631fe750b529b6e90dd625c160717c854a2100
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
resource/csdk/connectivity/common/src/caremotehandler.c

index 5ff2b31..72d72e9 100644 (file)
@@ -107,14 +107,15 @@ CAResponseInfo_t *CACloneResponseInfo(const CAResponseInfo_t *rep)
         case CA_CREATED:
         case CA_DELETED:
         case CA_VALID:
-        case CA_CONTENT:
         case CA_CHANGED:
+        case CA_CONTENT:
         case CA_CONTINUE:
         case CA_BAD_REQ:
         case CA_UNAUTHORIZED_REQ:
         case CA_BAD_OPT:
         case CA_FORBIDDEN_REQ:
         case CA_NOT_FOUND:
+        case CA_METHOD_NOT_ALLOWED:
         case CA_NOT_ACCEPTABLE:
         case CA_REQUEST_ENTITY_INCOMPLETE:
         case CA_REQUEST_ENTITY_TOO_LARGE:
@@ -122,6 +123,7 @@ CAResponseInfo_t *CACloneResponseInfo(const CAResponseInfo_t *rep)
         case CA_BAD_GATEWAY:
         case CA_SERVICE_UNAVAILABLE:
         case CA_RETRANSMIT_TIMEOUT:
+        case CA_PROXY_NOT_SUPPORTED:
             break;
         default:
             OIC_LOG_V(ERROR, TAG, "Response code  %u is invalid", rep->result);