summaryrefslogtreecommitdiffhomepage
path: root/libs/lucid-http/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-07-25 00:55:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-07-25 00:55:24 +0000
commited4b7a5fbb020f6ced1ce4333eafdfb6654d244b (patch)
tree414c4fabbb2ef4fa0fc97e9583f7041266a788cc /libs/lucid-http/luasrc
parent43aca0def5b0faeeec0bf3a54f1019c83a5ef112 (diff)
libs/lucid-http: make chunksinks cope with string-like udata
Diffstat (limited to 'libs/lucid-http/luasrc')
-rw-r--r--libs/lucid-http/luasrc/lucid/http/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/lucid-http/luasrc/lucid/http/server.lua b/libs/lucid-http/luasrc/lucid/http/server.lua
index 4bbec31a13..00c6b84161 100644
--- a/libs/lucid-http/luasrc/lucid/http/server.lua
+++ b/libs/lucid-http/luasrc/lucid/http/server.lua
@@ -288,7 +288,7 @@ local function chunksink(sock)
if not chunk then
return sock:writeall("0\r\n\r\n")
else
- return sock:writeall(("%X\r\n%s\r\n"):format(#chunk, chunk))
+ return sock:writeall(("%X\r\n%s\r\n"):format(#chunk, tostring(chunk)))
end
end
end