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

some fixes

parent ae9b25f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ enable_testing ()

set(LIBV "1.0.0")
set(Upstream_VERSION 1.0.0)
set (BLOCKSIZE 1500 CACHE STRING "Block size from Network Packages")
set (BLOCKSIZE 16384 CACHE STRING "Block size from Network Packages")
set (DEFAULT_UPLOADSIZE 4e+6 CACHE STRING "Block size from Network Packages")

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
+7 −7
Original line number Diff line number Diff line
@@ -8,19 +8,19 @@ if(BUILD_EXAMPLES AND ${htmlpp_FOUND})
        ${CMAKE_SOURCE_DIR}/src
    )  
    add_executable (httpcon httpcon.cpp)
    target_link_libraries(httpcon httppp-static htmlpp::htmlpp-static)
    target_link_libraries(httpcon httppp-static htmlpp-static)
    add_executable (httpform httpform.cpp)
    target_link_libraries(httpform httppp-static htmlpp::htmlpp-static)
    target_link_libraries(httpform httppp-static htmlpp-static)
    add_executable (httpsysinfo httpsysinfo.cpp)
    target_link_libraries(httpsysinfo httppp-static htmlpp::htmlpp-static)
    target_link_libraries(httpsysinfo httppp-static htmlpp-static)
    add_executable (httpcookie httpcookie.cpp)
    target_link_libraries(httpcookie httppp-static htmlpp::htmlpp-static)
    target_link_libraries(httpcookie httppp-static htmlpp-static)
    add_executable (httpauth httpauth.cpp)
    target_link_libraries(httpauth httppp-static htmlpp::htmlpp-static)
    target_link_libraries(httpauth httppp-static htmlpp-static)
    add_executable (httpproxy httpproxy.cpp)
    target_link_libraries(httpproxy httppp-static htmlpp::htmlpp-static)
    target_link_libraries(httpproxy httppp-static htmlpp-static)
    add_executable (httphello httphello.cpp)
    target_link_libraries(httphello httppp-static htmlpp::htmlpp-static)
    target_link_libraries(httphello httppp-static htmlpp-static)
endif()

add_executable (httpclient httpclient.cpp)
+3 −2
Original line number Diff line number Diff line
@@ -72,9 +72,9 @@ void libhttppp::HttpEvent::RequestEvent(netplus::con* curcon,const int tid,void
REQUESTHANDLING:
        switch(cureq->getRequestType()){
            case 0:
                std::cout.write(cureq->RecvData.data(),cureq->RecvData.size())<<std::endl;
                cureq->parse();
                goto REQUESTHANDLING;
                break;
            case GETREQUEST:
                RequestEvent(cureq,tid,args);
                break;
@@ -84,12 +84,13 @@ REQUESTHANDLING:
                    cureq->RecvData.resize(cureq->getContentLength());
                }
                break;
            default:
            default:{
                cureq->clear();
                libhttppp::HTTPException re;
                re[libhttppp::HTTPException::Error] << "unknown requesttype !";
                throw re;
            }
        }
    }catch(HTTPException &e){
        netplus::NetException re;
        re[netplus::NetException::Error] << "httpd error: " << e.what();