From: Jo-Philipp Wich Date: Sat, 25 Jul 2009 00:55:24 +0000 (+0000) Subject: libs/lucid-http: make chunksinks cope with string-like udata X-Git-Tag: 0.10.0~1309 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ed4b7a5fbb020f6ced1ce4333eafdfb6654d244b;p=oweals%2Fluci.git libs/lucid-http: make chunksinks cope with string-like udata --- diff --git a/libs/lucid-http/luasrc/lucid/http/server.lua b/libs/lucid-http/luasrc/lucid/http/server.lua index 4bbec31a1..00c6b8416 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