Loading src/blogi.cpp +10 −8 Changes for src/blogi.cpp: 10 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -454,6 +454,16 @@ void blogi::Blogi::RequestEvent(libhttppp::HttpRequest &curreq,const int tid,ULO std::cout << std::endl; RETRY_REQUEST: if (curreq.getRequestURL().rfind("robots.txt")!=std::string::npos){ std::string robot = "user-agent: *\r\ndisallow: /blog/settings/"; libhttppp::HttpResponse resp; resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/plain"); resp.send(curreq,robot,robot.length()); return; } libhttppp::HttpCookie cookie; libhttppp::HttpResponse curres; std::string sessid; Loading Loading @@ -573,14 +583,6 @@ RETRY_REQUEST: webedit::Renderer(*PlgArgs,curreq,tid,sessid,index); return; }else if (curreq.getRequestURL().find("robots.txt")!=std::string::npos){ const char *robot = "user-agent: *\r\ndisallow: /blog/settings/"; libhttppp::HttpResponse resp; resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/plain"); resp.send(curreq,robot,strlen(robot)); return; } Loading Loading
src/blogi.cpp +10 −8 Changes for src/blogi.cpp: 10 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -454,6 +454,16 @@ void blogi::Blogi::RequestEvent(libhttppp::HttpRequest &curreq,const int tid,ULO std::cout << std::endl; RETRY_REQUEST: if (curreq.getRequestURL().rfind("robots.txt")!=std::string::npos){ std::string robot = "user-agent: *\r\ndisallow: /blog/settings/"; libhttppp::HttpResponse resp; resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/plain"); resp.send(curreq,robot,robot.length()); return; } libhttppp::HttpCookie cookie; libhttppp::HttpResponse curres; std::string sessid; Loading Loading @@ -573,14 +583,6 @@ RETRY_REQUEST: webedit::Renderer(*PlgArgs,curreq,tid,sessid,index); return; }else if (curreq.getRequestURL().find("robots.txt")!=std::string::npos){ const char *robot = "user-agent: *\r\ndisallow: /blog/settings/"; libhttppp::HttpResponse resp; resp.setVersion(HTTPVERSION(1.1)); resp.setState(HTTP200); resp.setContentType("text/plain"); resp.send(curreq,robot,strlen(robot)); return; } Loading