diff --git a/get_version.sh b/get_version.sh index 8c742672..af453c7e 100755 --- a/get_version.sh +++ b/get_version.sh @@ -3,7 +3,7 @@ GIT_VER=$(git log|grep ^commit|wc -l|sed -e "s/^ *//") MD5=$(git log|head -1|awk '{printf $2}') TMP_FILE=/tmp/version -echo "#define VERSION \"0.9.27.$GIT_VER\"" > ${TMP_FILE} +echo "#define VERSION \"0.9.28.$GIT_VER\"" > ${TMP_FILE} echo "#define VERSION_MD5 \"$MD5\"" >> ${TMP_FILE} if [ ! -f $1 ];then mv -f ${TMP_FILE} $1 diff --git a/lib/src/HttpControllersRouter.cc b/lib/src/HttpControllersRouter.cc index 38284c01..5e1e89ca 100644 --- a/lib/src/HttpControllersRouter.cc +++ b/lib/src/HttpControllersRouter.cc @@ -164,7 +164,7 @@ void HttpControllersRouter::route(const HttpRequestImplPtr &req, //TODO: Is there any better way to find the sub-match index without using loop? if (!result[i].matched) continue; - if (result[i].str() == req->path() && i <= _ctrlVector.size()) + if (i <= _ctrlVector.size()) { size_t ctlIndex = i - 1; auto &routerItem = _ctrlVector[ctlIndex];