Loading src/http.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -389,7 +389,7 @@ const char * libhttppp::HttpResponse::getState(){ } size_t libhttppp::HttpResponse::getContentLength(){ if(_ContentLength->empty()) if(!_ContentLength || _ContentLength->empty()) return 0; return _ContentLength->at(0).getSizetValue(); Loading Loading
src/http.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -389,7 +389,7 @@ const char * libhttppp::HttpResponse::getState(){ } size_t libhttppp::HttpResponse::getContentLength(){ if(_ContentLength->empty()) if(!_ContentLength || _ContentLength->empty()) return 0; return _ContentLength->at(0).getSizetValue(); Loading