Tracking OTM state on client side
[platform/upstream/iotivity.git] / resource / src / OCUtilities.cpp
index 8fc0f03..a2dd893 100644 (file)
@@ -18,9 +18,9 @@
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#include <OCApi.h>
+#include "OCApi.h"
 
-#include <OCUtilities.h>
+#include "OCUtilities.h"
 
 #include <boost/algorithm/string.hpp>
 
@@ -37,8 +37,7 @@ OC::Utilities::QueryParamsKeyVal OC::Utilities::getQueryParams(const std::string
     }
 
     std::vector<std::string> queryparams;
-    boost::split(queryparams, uri, [](const char c){return c=='&';},
-    boost::token_compress_on);
+    boost::split(queryparams, uri, boost::is_any_of(OC_QUERY_SEPARATOR), boost::token_compress_on);
 
     for(std::string& it: queryparams)
     {