diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-25 00:55:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-25 00:55:24 +0000 |
commit | ed4b7a5fbb020f6ced1ce4333eafdfb6654d244b (patch) | |
tree | 414c4fabbb2ef4fa0fc97e9583f7041266a788cc | |
parent | 43aca0def5b0faeeec0bf3a54f1019c83a5ef112 (diff) |
libs/lucid-http: make chunksinks cope with string-like udata
-rw-r--r-- | libs/lucid-http/luasrc/lucid/http/server.lua | 2 |
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 |