Logging effort created a regression in InProcClientWrapper that caused get/observe...
authorErich Keane <erich.keane@intel.com>
Mon, 29 Sep 2014 17:28:38 +0000 (10:28 -0700)
committerErich Keane <erich.keane@intel.com>
Mon, 29 Sep 2014 17:28:38 +0000 (10:28 -0700)
Change-Id: Id6ac04d3aec3ee1f9f0d93e2cfe06cc65324d1b5

src/InProcClientWrapper.cpp

index 5916d53..d849843 100644 (file)
@@ -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<std::mutex> 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<std::mutex> 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);
     }