diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-01-02 22:51:33 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-01-02 22:51:33 +0000 |
| commit | 49445951a8e3a6960c9024a6686d4c14fb81f43c (patch) | |
| tree | b94e030c1c8424fc091a92666a553143b96f2c96 /src | |
| parent | 97b26e0b66c840a446a0179200c7df23565330d1 (diff) | |
| download | luasocket-49445951a8e3a6960c9024a6686d4c14fb81f43c.tar.gz luasocket-49445951a8e3a6960c9024a6686d4c14fb81f43c.tar.bz2 luasocket-49445951a8e3a6960c9024a6686d4c14fb81f43c.zip | |
Few extra changes...
Diffstat (limited to 'src')
| -rw-r--r-- | src/luasocket.c | 2 | ||||
| -rw-r--r-- | src/mime.c | 2 | ||||
| -rw-r--r-- | src/socket.lua | 2 | ||||
| -rw-r--r-- | src/timeout.c | 1 |
4 files changed, 3 insertions, 4 deletions
diff --git a/src/luasocket.c b/src/luasocket.c index d07b90f..4b829f8 100644 --- a/src/luasocket.c +++ b/src/luasocket.c | |||
| @@ -20,11 +20,11 @@ | |||
| 20 | #include <lua.h> | 20 | #include <lua.h> |
| 21 | #include <lauxlib.h> | 21 | #include <lauxlib.h> |
| 22 | #include "compat-5.1.h" | 22 | #include "compat-5.1.h" |
| 23 | #include "luasocket.h" | ||
| 23 | 24 | ||
| 24 | /*=========================================================================*\ | 25 | /*=========================================================================*\ |
| 25 | * LuaSocket includes | 26 | * LuaSocket includes |
| 26 | \*=========================================================================*/ | 27 | \*=========================================================================*/ |
| 27 | #include "luasocket.h" | ||
| 28 | 28 | ||
| 29 | #include "auxiliar.h" | 29 | #include "auxiliar.h" |
| 30 | #include "except.h" | 30 | #include "except.h" |
| @@ -8,8 +8,8 @@ | |||
| 8 | 8 | ||
| 9 | #include <lua.h> | 9 | #include <lua.h> |
| 10 | #include <lauxlib.h> | 10 | #include <lauxlib.h> |
| 11 | #include "compat-5.1.h" | ||
| 12 | 11 | ||
| 12 | #include "compat-5.1.h" | ||
| 13 | #include "mime.h" | 13 | #include "mime.h" |
| 14 | 14 | ||
| 15 | /*=========================================================================*\ | 15 | /*=========================================================================*\ |
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 | }) |
| 75 | end | 75 | end |
diff --git a/src/timeout.c b/src/timeout.c index 7d55031..be68228 100644 --- a/src/timeout.c +++ b/src/timeout.c | |||
| @@ -9,7 +9,6 @@ | |||
| 9 | #include <lua.h> | 9 | #include <lua.h> |
| 10 | #include <lauxlib.h> | 10 | #include <lauxlib.h> |
| 11 | 11 | ||
| 12 | #include "luasocket.h" | ||
| 13 | #include "auxiliar.h" | 12 | #include "auxiliar.h" |
| 14 | #include "timeout.h" | 13 | #include "timeout.h" |
| 15 | 14 | ||
