Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typo in web-app example
  • Loading branch information
creationix committed Aug 30, 2012
1 parent 1f9c272 commit 255e888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/web-app/modules/cleanup.lua
Expand Up @@ -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)
Expand Down

0 comments on commit 255e888

Please sign in to comment.