Modified RCSSeparateResponse to send the response built by interface handlers.
[platform/upstream/iotivity.git] / service / resource-encapsulation / src / serverBuilder / src / RCSSeparateResponse.cpp
index 69cc22a..8a9e1c0 100755 (executable)
@@ -83,9 +83,8 @@ namespace OIC
 \r
             response->setResponseResult(OC_EH_OK);\r
 \r
-            // TODO the response should be different by the request interface.\r
             response->setResourceRepresentation(\r
-                    RCSRepresentation::toOCRepresentation(resObj->toRepresentation()));\r
+                    RCSRepresentation::toOCRepresentation(resObj->getRepresentation(m_request)));\r
 \r
             invokeOCFunc(OC::OCPlatform::sendResponse, response);\r
 \r