yWeb: set RangeEnd

Origin commit data
------------------
Commit: 38bdf512b0
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-08-30 (Sat, 30 Aug 2014)

Origin message was:
------------------
- yWeb: set RangeEnd
This commit is contained in:
Jacek Jendrzej
2014-08-30 14:43:35 +02:00
committed by vanhofen
parent 06a10b8bb4
commit dde39896a2

View File

@@ -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