diff options
| author | agorodilov <[email protected]> | 2022-02-10 16:47:09 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:09 +0300 | 
| commit | 7a4979e6211c3e78c7f9041d4a9e5d3405343c36 (patch) | |
| tree | 9e9943579e5a14679af7cd2cda3c36d8c0b775d3 /library/cpp/http/fetch | |
| parent | 676340c42e269f3070f194d160f42a83a10568d4 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/fetch')
| -rw-r--r-- | library/cpp/http/fetch/http_digest.cpp | 10 | ||||
| -rw-r--r-- | library/cpp/http/fetch/http_socket.cpp | 2 | ||||
| -rw-r--r-- | library/cpp/http/fetch/httpfetcher.h | 4 | ||||
| -rw-r--r-- | library/cpp/http/fetch/httpfsm.h | 6 | ||||
| -rw-r--r-- | library/cpp/http/fetch/httpload.cpp | 12 | ||||
| -rw-r--r-- | library/cpp/http/fetch/httpload.h | 6 | ||||
| -rw-r--r-- | library/cpp/http/fetch/httpzreader.h | 4 | 
7 files changed, 22 insertions, 22 deletions
| diff --git a/library/cpp/http/fetch/http_digest.cpp b/library/cpp/http/fetch/http_digest.cpp index 1eaa02b7f24..b6d33208045 100644 --- a/library/cpp/http/fetch/http_digest.cpp +++ b/library/cpp/http/fetch/http_digest.cpp @@ -27,8 +27,8 @@ httpDigestHandler::~httpDigestHandler() {  void httpDigestHandler::clear() {      free(Nonce_);      free(HeaderInstruction_); -    User_ = Password_ = nullptr; -    Nonce_ = HeaderInstruction_ = nullptr; +    User_ = Password_ = nullptr;  +    Nonce_ = HeaderInstruction_ = nullptr;       NonceCount_ = 0;  } @@ -49,7 +49,7 @@ const char* httpDigestHandler::getHeaderInstruction() const {  /************************************************************/  void httpDigestHandler::generateCNonce(char* outCNonce) {      if (!*outCNonce) -        sprintf(outCNonce, "%ld", (long)time(nullptr)); +        sprintf(outCNonce, "%ld", (long)time(nullptr));   }  /************************************************************/ @@ -148,7 +148,7 @@ bool httpDigestHandler::processHeader(const THttpAuthHeader* header,      if (Nonce_) {          if (strcmp(Nonce_, header->nonce)) {              free(Nonce_); -            Nonce_ = nullptr; +            Nonce_ = nullptr;               NonceCount_ = 0;          }      } @@ -157,7 +157,7 @@ bool httpDigestHandler::processHeader(const THttpAuthHeader* header,          NonceCount_ = 0;      }      free(HeaderInstruction_); -    HeaderInstruction_ = nullptr; +    HeaderInstruction_ = nullptr;       NonceCount_++;      char nonceCount[20]; diff --git a/library/cpp/http/fetch/http_socket.cpp b/library/cpp/http/fetch/http_socket.cpp index 1524ef04a80..248e1935c9a 100644 --- a/library/cpp/http/fetch/http_socket.cpp +++ b/library/cpp/http/fetch/http_socket.cpp @@ -198,7 +198,7 @@ socketAbstractHandler* socketHandlerFactory::chooseHandler(const THttpURL& url)          return new socketSecureHandler;  #endif -    return nullptr; +    return nullptr;   }  /************************************************************/ diff --git a/library/cpp/http/fetch/httpfetcher.h b/library/cpp/http/fetch/httpfetcher.h index 7fc251afd2e..765ad9aa268 100644 --- a/library/cpp/http/fetch/httpfetcher.h +++ b/library/cpp/http/fetch/httpfetcher.h @@ -72,7 +72,7 @@ public:          }          bool inheader = 1; -        void *bufptr = nullptr, *buf = nullptr, *parsebuf = nullptr; +        void *bufptr = nullptr, *buf = nullptr, *parsebuf = nullptr;           ssize_t got;          size_t buffree = 0, bufsize = 0, buflen = 0;          size_t maxsize = TCheck::GetMaxHeaderSize(); @@ -81,7 +81,7 @@ public:                  if (buf) {                      TAlloc::Shrink(buf, buflen - buffree);                      if (TWriter::Write(buf, buflen - buffree) < 0) { -                        buf = nullptr; +                        buf = nullptr;                           ret = EIO;                          break;                      } diff --git a/library/cpp/http/fetch/httpfsm.h b/library/cpp/http/fetch/httpfsm.h index c4abdcd0d23..f85ab2c104b 100644 --- a/library/cpp/http/fetch/httpfsm.h +++ b/library/cpp/http/fetch/httpfsm.h @@ -70,9 +70,9 @@ private:  private:      int Init(THttpBaseHeader* header) {          base_hd = header; -        auth_hd = nullptr; -        request_hd = nullptr; -        hd = nullptr; +        auth_hd = nullptr;  +        request_hd = nullptr;  +        hd = nullptr;           init();          return 0;      } diff --git a/library/cpp/http/fetch/httpload.cpp b/library/cpp/http/fetch/httpload.cpp index 82ea8900b5c..55c5cb1030e 100644 --- a/library/cpp/http/fetch/httpload.cpp +++ b/library/cpp/http/fetch/httpload.cpp @@ -58,16 +58,16 @@ const THttpHeader* httpAgentReader::readHeader() {      while (State == hp_in_header) {          if (!step()) {              Header_.error = HTTP_CONNECTION_LOST; -            return nullptr; +            return nullptr;           }          ParseGeneric(BufPtr_, BufRest_);      }      if (State == hp_eof || State == hp_error) { -        BufPtr_ = nullptr; +        BufPtr_ = nullptr;           BufRest_ = -1;      }      if (State == hp_error || Header_.error) -        return nullptr; +        return nullptr;       return &Header_;  } @@ -149,7 +149,7 @@ void httpLoadAgent::clearReader() {          if (!opened)              Disconnect();          delete Reader_; -        Reader_ = nullptr; +        Reader_ = nullptr;       }      ErrCode_ = 0;  } @@ -159,7 +159,7 @@ void httpLoadAgent::setRealHost(const char* hostname) {      if (hostname)          RealHost_ = strdup(hostname);      else -        RealHost_ = nullptr; +        RealHost_ = nullptr;       ErrCode_ = 0;  } @@ -351,7 +351,7 @@ bool httpLoadAgent::doStartRequest() {                                        "GET")) {                  //mReader->skipTheRest();                  delete Reader_; -                Reader_ = nullptr; +                Reader_ = nullptr;                   ErrCode_ = 0;                  Disconnect();                  continue; diff --git a/library/cpp/http/fetch/httpload.h b/library/cpp/http/fetch/httpload.h index e22e4b809ea..887c3b4000c 100644 --- a/library/cpp/http/fetch/httpload.h +++ b/library/cpp/http/fetch/httpload.h @@ -248,7 +248,7 @@ public:      void dropHeaderInstructions();      bool startRequest(const char* url, -                      const char* url_to_merge = nullptr, +                      const char* url_to_merge = nullptr,                         bool persistent = false,                        const TAddrList& addrs = TAddrList()); @@ -270,13 +270,13 @@ public:      const THttpAuthHeader* getAuthHeader() {          if (Reader_ && Reader_->getAuthHeader()->use_auth)              return Reader_->getAuthHeader(); -        return nullptr; +        return nullptr;       }      const THttpHeader* getHeader() {          if (Reader_)              return Reader_->getAuthHeader(); -        return nullptr; +        return nullptr;       }      const THttpURL& getURL() { diff --git a/library/cpp/http/fetch/httpzreader.h b/library/cpp/http/fetch/httpzreader.h index 68eb00853d6..780d514f587 100644 --- a/library/cpp/http/fetch/httpzreader.h +++ b/library/cpp/http/fetch/httpzreader.h @@ -33,7 +33,7 @@ public:          , BufSize(0)          , CurContSize(0)          , MaxContSize(0) -        , Buf(nullptr) +        , Buf(nullptr)           , ZErr(0)          , ConnectionClosed(0)          , IgnoreTrailingGarbage(true) @@ -46,7 +46,7 @@ public:          if (Buf) {              free(Buf); -            Buf = nullptr; +            Buf = nullptr;           }      } | 
