Change the delimiter from '&' to ';'
authorJaehong Jo <jaehong.jo@samsung.com>
Mon, 8 Aug 2016 09:52:46 +0000 (18:52 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 19 Aug 2016 10:46:26 +0000 (10:46 +0000)
According to the specifications

Change-Id: I6c4afcd312515e71b5d9702b2edaa154bce7f2ea
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10135
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/src/InProcClientWrapper.cpp

index bb6d860..1ba07f0 100644 (file)
@@ -802,13 +802,8 @@ namespace OC
         {
             for (auto& paramList : param.second)
             {
-                paramsList << param.first << '=' << paramList;
-                if (paramList != param.second.back())
-                {
-                    paramsList << '&';
-                }
+                paramsList << param.first << '=' << paramList << ';';
             }
-            paramsList << ';';
         }
 
         std::string queryString = paramsList.str();