Commit 3455b28b authored by jan.koester's avatar jan.koester
Browse files

test

parent 1005341a
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -2266,23 +2266,6 @@ size_t libhttppp::HttpClient::readBodyChunkNonBlocking(char *buf, size_t bufsize
    return static_cast<size_t>(-1);
}

static bool is_redirect_status(int code) {
  return code == 301 || code == 302 || code == 303 || code == 307 || code == 308;
}

static std::string normalize_path(const std::string &location, const std::string &base_path) {
  if (location.empty()) return base_path.empty() ? std::string("/") : base_path;
  if (location[0] == '/') return location;
  if (location[0] == '?') {
    std::string base = base_path.empty() ? std::string("/") : base_path;
    return base + location;
  }
  std::string base = base_path.empty() ? std::string("/") : base_path;
  size_t slash = base.find_last_of('/');
  if (slash == std::string::npos) return std::string("/") + location;
  return base.substr(0, slash + 1) + location;
}

  // --------------- HTTP/3 client frame helpers ---------------
  static size_t h3EncodeVarInt(uint64_t value, uint8_t *out) {
    if (value < 64) {