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

test

parent 5cc1c86c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1182,8 +1182,13 @@ const std::vector<char> libhttppp::HttpClient::_h2Request(
          throw ee;
        }

        // Always wait for socket readability before next iteration to
        // avoid busy-spinning when pumpNetwork processes only ACKs/control
        // frames but no application stream data is available yet.
        if (n == 0) {
          _sw.waitRead(*_cltsock, 100);
        }
      }

      if (is_redirect_status(status_code) && redirects < kMaxRedirects && !location.empty()) {
        ++redirects;