mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
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:
@@ -83,6 +83,7 @@ THandleStatus CmodCache::Hook_SendResponse(CyhookHandler *hh) {
|
|||||||
AddToCache(hh, url, hh->yresult, hh->HookVarList["CacheMimeType"],
|
AddToCache(hh, url, hh->yresult, hh->HookVarList["CacheMimeType"],
|
||||||
category); // create cache file and add to cache list
|
category); // create cache file and add to cache list
|
||||||
hh->ContentLength = (hh->yresult).length();
|
hh->ContentLength = (hh->yresult).length();
|
||||||
|
hh->RangeEnd = (hh->yresult).length()-1;
|
||||||
hh->SendFile(CacheList[url].filename); // Send as file
|
hh->SendFile(CacheList[url].filename); // Send as file
|
||||||
hh->ResponseMimeType = CacheList[url].mime_type; // remember mime
|
hh->ResponseMimeType = CacheList[url].mime_type; // remember mime
|
||||||
} else if (hh->UrlData["path"] == "/y/") // /y/ commands
|
} else if (hh->UrlData["path"] == "/y/") // /y/ commands
|
||||||
|
Reference in New Issue
Block a user