Skip to content
Permalink
Browse files

Fix typo in web-app example

  • Loading branch information...
creationix committed Aug 30, 2012
1 parent 1f9c272 commit 255e8885668d46909e454b78fa1aa31f719fd80a
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/web-app/modules/cleanup.lua
@@ -22,13 +22,13 @@ return function (app)
if not hasServer then
headers['Server'] = "Luvit " .. process.version
end
if not hasContentLength or hasTransfarEncoding then
if not hasContentLength or hasTransferEncoding then
if type(body) == "string" then
headers["Content-Length"] = #body
hasContentLength = true
elseif type(body) == "table" then
headers["Transfer-Encoding"] = "chunked"
hasTransfarEncoding = true
hasTransferEncoding = true
local originalStream = body
body = iStream:new()
originalStream:on("data", function (chunk)

0 comments on commit 255e888

Please sign in to comment.
You can’t perform that action at this time.