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

test it

parent f622718a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ void libhttppp::HttpEvent::deleteConnetion(netplus::con* curon){
void libhttppp::HttpEvent::RequestEvent(HttpRequest *curreq,const int tid,ULONG_PTR args){
}

void libhttppp::HttpEvent::ResponseEvent(HttpRequest *curreq,const int tid,ULONG_PTR args){
void libhttppp::HttpEvent::ResponseEvent(HttpResponse *curreq,const int tid,ULONG_PTR args){

}

@@ -102,10 +102,10 @@ REQUESTHANDLING:
}

void libhttppp::HttpEvent::ResponseEvent(netplus::con* curcon,const int tid,ULONG_PTR args){
    HttpRequest *cureq =(HttpRequest*)curcon;
    HttpResponse *cureq =(HttpResponse*)curcon;
    try{
        ResponseEvent(cureq,tid,args);
        if(cureq->SendData.empty()){
        if( cureq->SendData.pos+1 >= cureq->getContentLength() ){
            cureq->SendData.pos=0;
            cureq->clear();
        }
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ namespace libhttppp {
        void deleteConnetion(netplus::con *curon);

        virtual void RequestEvent(HttpRequest *curreq,const int tid,ULONG_PTR args);
        virtual void ResponseEvent(HttpRequest *curreq,const int tid,ULONG_PTR args);
        virtual void ResponseEvent(HttpResponse *curreq,const int tid,ULONG_PTR args);
        virtual void ConnectEvent(HttpRequest *curreq,const int tid,ULONG_PTR args);
        virtual void DisconnectEvent(HttpRequest *curreq,const int tid,ULONG_PTR args);