Commit 8f9e3cb7 authored by jan.koester's avatar jan.koester
Browse files

test

parent 83721445
Loading
Loading
Loading
Loading
+2 −2
Changes for plugins/google/google.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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;";
@@ -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();