From dde39896a29faa0d0e9ae3124d17c85db2c6eef0 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 30 Aug 2014 14:43:35 +0200 Subject: [PATCH] yWeb: set RangeEnd Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/38bdf512b0f10b6281c97903343068260b505785 Author: Jacek Jendrzej Date: 2014-08-30 (Sat, 30 Aug 2014) Origin message was: ------------------ - yWeb: set RangeEnd --- src/nhttpd/yhttpd_mods/mod_cache.cpp | 1 + 1 file changed, 1 insertion(+) 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