From: Erich Keane Date: Mon, 29 Sep 2014 17:28:38 +0000 (-0700) Subject: Logging effort created a regression in InProcClientWrapper that caused get/observe... X-Git-Tag: 0.9.0-CA-RC1~156^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f666a91bc36881b044fe2f9a897c7287f0e27c8b;p=contrib%2Fiotivity.git Logging effort created a regression in InProcClientWrapper that caused get/observe to not work. This fixes said regression Change-Id: Id6ac04d3aec3ee1f9f0d93e2cfe06cc65324d1b5 --- diff --git a/src/InProcClientWrapper.cpp b/src/InProcClientWrapper.cpp index 5916d53..d849843 100644 --- a/src/InProcClientWrapper.cpp +++ b/src/InProcClientWrapper.cpp @@ -396,7 +396,7 @@ namespace OC if(cLock) { std::ostringstream os; - os << host << "/oc/presence"; + os << host << assembleSetResourceUri(uri, queryParams).c_str(); std::lock_guard lock(*cLock); OCDoHandle handle; @@ -559,8 +559,7 @@ namespace OC if(cLock) { std::ostringstream os; - - os << host << "/oc/presence"; + os << host << assembleSetResourceUri(uri, queryParams).c_str(); std::lock_guard lock(*cLock); result = OCDoResource(handle, method, @@ -629,7 +628,7 @@ namespace OC if(!cLock) return OC_STACK_ERROR; - + return OCDoResource(handle, OC_REST_PRESENCE, os.str().c_str(), nullptr, nullptr, OC_NON_CONFIRMABLE, &cbdata); }