aboutsummaryrefslogtreecommitdiff
path: root/src/socket.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.lua')
-rw-r--r--src/socket.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.lua b/src/socket.lua
index e3c85f0..1c82750 100644
--- a/src/socket.lua
+++ b/src/socket.lua
@@ -69,7 +69,7 @@ socket.sinkt["http-chunked"] = function(sock)
69 __call = function(self, chunk, err) 69 __call = function(self, chunk, err)
70 if not chunk then return sock:send("0\r\n\r\n") end 70 if not chunk then return sock:send("0\r\n\r\n") end
71 local size = string.format("%X\r\n", string.len(chunk)) 71 local size = string.format("%X\r\n", string.len(chunk))
72 return sock:send(size, chunk, "\r\n") 72 return sock:send(size .. chunk .. "\r\n")
73 end 73 end
74 }) 74 })
75end 75end