Loading plugins/google/google.cpp +2 −2 Changes for plugins/google/google.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ namespace blogi { std::string pushUrl = Args->config->buildurl("google/reviews/push"); std::string listUrl = Args->config->buildurl("google/reviews/list"); if(req.getRequestURL().compare(0, listUrl.length(), listUrl) == 0 && req.getRequestType() == libhttppp::GETrequest) { if(req.getRequestURL().compare(0, listUrl.length(), listUrl) == 0 && req.getRequestType() == GETREQUEST) { dbpp::SQL sql; dbpp::DBResult res; sql << "SELECT author_name, rating, text, time FROM google_reviews WHERE approved=true;"; Loading @@ -160,7 +160,7 @@ namespace blogi { return true; } if(req.getRequestURL().compare(0, pushUrl.length(), pushUrl) == 0 && req.getRequestType() == libhttppp::POSTrequest) { if(req.getRequestURL().compare(0, pushUrl.length(), pushUrl) == 0 && req.getRequestType() == POSTREQUEST) { // Receive incoming reviews (JSON format) std::vector<char> data; size_t datalen = req.getRequestLength(); Loading Loading
plugins/google/google.cpp +2 −2 Changes for plugins/google/google.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ namespace blogi { std::string pushUrl = Args->config->buildurl("google/reviews/push"); std::string listUrl = Args->config->buildurl("google/reviews/list"); if(req.getRequestURL().compare(0, listUrl.length(), listUrl) == 0 && req.getRequestType() == libhttppp::GETrequest) { if(req.getRequestURL().compare(0, listUrl.length(), listUrl) == 0 && req.getRequestType() == GETREQUEST) { dbpp::SQL sql; dbpp::DBResult res; sql << "SELECT author_name, rating, text, time FROM google_reviews WHERE approved=true;"; Loading @@ -160,7 +160,7 @@ namespace blogi { return true; } if(req.getRequestURL().compare(0, pushUrl.length(), pushUrl) == 0 && req.getRequestType() == libhttppp::POSTrequest) { if(req.getRequestURL().compare(0, pushUrl.length(), pushUrl) == 0 && req.getRequestType() == POSTREQUEST) { // Receive incoming reviews (JSON format) std::vector<char> data; size_t datalen = req.getRequestLength(); Loading