Commit ba21da05 authored by jan.koester's avatar jan.koester
Browse files

fixed

parent dd4f43e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ public:
        
    };

    void RequestEvent(libhttppp::HttpRequest* curreq , const int tid,void *args){
    void RequestEvent(libhttppp::HttpRequest* curreq , const int tid,ULONG_PTR args){
            libhtmlpp::HtmlString formdat;
            try {
                Multiform(curreq, formdat);
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ public:
    Controller(netplus::socket* serversocket) : HttpEvent(serversocket){
        
    };
    void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,void *args){
    void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,ULONG_PTR args){
        try{
            libhttppp::HttpResponse curres;
            const char *hello="<!DOCTYPE html><html><head><title>hello</title></head><body>Hello World</body></html>";
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ public:
    Controller(netplus::socket* serversocket) : HttpEvent(serversocket){
        
    };
    void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,void *args){
    void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,ULONG_PTR args){
        try{
            std::cout << "Send answer"  << std::endl;
            sendResponse(curreq);
+2 −2
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ public:
        }
    }
    /*virtual method from event will call for every incomming Request*/
    void RequestEvent(libhttppp::HttpRequest* curreq, const int tid,void *args){
    void RequestEvent(libhttppp::HttpRequest* curreq, const int tid,ULONG_PTR args){
        try{
            /*self implemented controller see above*/
            IndexController(curreq);
@@ -173,7 +173,7 @@ public:
        }
    }

    void ResponseEvent(libhttppp::HttpRequest * curreq, const int tid, void * args){
    void ResponseEvent(libhttppp::HttpRequest * curreq, const int tid,ULONG_PTR args){
        const char *cururl=curreq->getRequestURL();
        if(strncmp(cururl,"/images/header.png",18)==0){
            if(curreq->SendData.pos < header_png_size){