diff --git a/src/nhttpd/yhttpd_mods/mod_cache.cpp b/src/nhttpd/yhttpd_mods/mod_cache.cpp index 2172e17e0..b39c907c5 100644 --- a/src/nhttpd/yhttpd_mods/mod_cache.cpp +++ b/src/nhttpd/yhttpd_mods/mod_cache.cpp @@ -83,6 +83,7 @@ THandleStatus CmodCache::Hook_SendResponse(CyhookHandler *hh) { AddToCache(hh, url, hh->yresult, hh->HookVarList["CacheMimeType"], category); // create cache file and add to cache list hh->ContentLength = (hh->yresult).length(); + hh->RangeEnd = (hh->yresult).length()-1; hh->SendFile(CacheList[url].filename); // Send as file hh->ResponseMimeType = CacheList[url].mime_type; // remember mime } else if (hh->UrlData["path"] == "/y/") // /y/ commands