Commit 0fbec3a6 authored by jan.koester's avatar jan.koester
Browse files

fixes

parent 762fd3ab
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -277,9 +277,6 @@ namespace blogi {

            libhtmlpp::HtmlElement youmain("ul");


            std::cout << json << std::endl;

            struct json_object *youindex;
            youindex = json_tokener_parse(json.c_str());

+7 −5
Original line number Diff line number Diff line
@@ -311,9 +311,12 @@ void blogi::Blogi::RequestEvent(libhttppp::HttpRequest *curreq,const int tid,ULO

        if(hip)
            std::cout <<"Request from: " << hip->at(0).getvalue() << " url: " << curreq->getRequestURL();
        if(useragent)
            std::cout << " agent: " << useragent->at(0).getvalue();

        if(useragent){
            std::cout << " agent: ";
            for(libhttppp::HttpHeader::HeaderData::Values *cval=useragent->getfirstValue(); cval; cval=cval->nextvalue()){
                std::cout << cval->getvalue() << " ";
            }
        }
        std::cout << std::endl;

RETRY_REQUEST:
@@ -413,7 +416,6 @@ RETRY_REQUEST:
                    url+=api->getName();
                    if(strncmp(curreq->getRequestURL(),url.c_str(),url.length())==0){
                        if(api->Controller(tid,curreq,&index,sessid)){
                            std::cout << api->getName() << std::endl;
                            return;
                        }
                    }