libs/lucid-http: make chunksinks cope with string-like udata
This commit is contained in:
parent
43aca0def5
commit
ed4b7a5fbb
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ local function chunksink(sock)
|
||||||
if not chunk then
|
if not chunk then
|
||||||
return sock:writeall("0\r\n\r\n")
|
return sock:writeall("0\r\n\r\n")
|
||||||
else
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue