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

cleanups

parent b727e72f
Loading
Loading
Loading
Loading
+9 −4
Changes for src/http.cpp: 9 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -248,11 +248,12 @@ const std::vector<char> libhttppp::HttpClient::Get(libhttppp::HttpRequest &nreq)
        }catch(netplus::NetException &re){
          if(re.getErrorType()!=netplus::NetException::Note){
            throw re;
          }
          else
          }else{
            std::this_thread::sleep_for(std::chrono::milliseconds(1));
            continue;
          }
        }
      }
    }catch(netplus::NetException &e){
      libhttppp::HTTPException he;
      he[libhttppp::HTTPException::Error] << e.what();
@@ -338,6 +339,7 @@ const std::vector<char> libhttppp::HttpClient::Get(libhttppp::HttpRequest &nreq)
                    ee[libhttppp::HTTPException::Error] << e.what();
                    throw ee;
                }else{
                    std::this_thread::sleep_for(std::chrono::milliseconds(1));
                    continue;
                }
            }
@@ -391,12 +393,14 @@ const std::vector<char> libhttppp::HttpClient::Post(libhttppp::HttpRequest &nreq
          recv=_cltsock->recvData(data);
          break;
        }catch(netplus::NetException &re){
          if(re.getErrorType()!=netplus::NetException::Note)
          if(re.getErrorType()!=netplus::NetException::Note){
            throw re;
          else
          }else{
            std::this_thread::sleep_for(std::chrono::milliseconds(1));
            continue;
          }
        }
      }
    }catch(netplus::NetException &e){
      libhttppp::HTTPException he;
      he[libhttppp::HTTPException::Error] << e.what();
@@ -481,6 +485,7 @@ const std::vector<char> libhttppp::HttpClient::Post(libhttppp::HttpRequest &nreq
                   ee[libhttppp::HTTPException::Error] << e.what();
                   throw ee;
                }else{
                   std::this_thread::sleep_for(std::chrono::milliseconds(1));
                   continue;
               }
            }