Roxen.git / server / protocols / http.pike

version» Context lines:

Roxen.git/server/protocols/http.pike:2028: Inside #if defined(RAM_CACHE)
   ]);    cache_status["protstore"] = 1;    }    }    }   #endif       if ((method != "HEAD") && (undefinedp(file->len) || (file->len < 0)) &&    (misc->connection == "keep-alive")) {    // Unknown length ==> Connection: close. +  if (file->file) {    variant_heads->Connection = "close";    misc->connection = "close"; -  +  } else if (!file->data) { +  file->data = ""; +  file->len = 0;    } -  +  }       if (file->error == 200) {    int conditional;    if (none_match) {    // NOTE: misc->etag may be zero below, but that's ok.    if (none_match[misc->etag] || (misc->etag && none_match["*"])) {    // We have a if-none-match header that matches our etag.    if ((<"HEAD", "GET">)[method]) {    // RFC 2616 14.26:    // Instead, if the request method was GET or HEAD, the server