Fixed a global variable being set. I believe the intent was to set

response.body and not result.body.
This commit is contained in:
batrick 2010-02-08 02:35:17 +00:00
parent ec79a3b59b
commit 2038337907

View file

@ -980,7 +980,7 @@ local function insert_cache (state, response)
response = record.result; -- only modify copy
cache[key], cache[#cache+1] = record, record;
if state.no_cache_body then
result.body = "";
response.body = "";
end
if type(response.body) == "string" then
cache.size = cache.size + #response.body;