From 49445951a8e3a6960c9024a6686d4c14fb81f43c Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sun, 2 Jan 2005 22:51:33 +0000 Subject: [PATCH] Few extra changes... --- src/luasocket.c | 2 +- src/mime.c | 2 +- src/socket.lua | 2 +- src/timeout.c | 1 - test/httptest.lua | 2 +- 5 files changed, 4 insertions(+), 5 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 @@ #include #include #include "compat-5.1.h" +#include "luasocket.h" /*=========================================================================*\ * LuaSocket includes \*=========================================================================*/ -#include "luasocket.h" #include "auxiliar.h" #include "except.h" diff --git a/src/mime.c b/src/mime.c index bd48920..dcc4af3 100644 --- a/src/mime.c +++ b/src/mime.c @@ -8,8 +8,8 @@ #include #include -#include "compat-5.1.h" +#include "compat-5.1.h" #include "mime.h" /*=========================================================================*\ 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) __call = function(self, chunk, err) if not chunk then return sock:send("0\r\n\r\n") end local size = string.format("%X\r\n", string.len(chunk)) - return sock:send(size, chunk, "\r\n") + return sock:send(size .. chunk .. "\r\n") end }) 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 @@ #include #include -#include "luasocket.h" #include "auxiliar.h" #include "timeout.h" diff --git a/test/httptest.lua b/test/httptest.lua index 8862ceb..2335fcb 100644 --- a/test/httptest.lua +++ b/test/httptest.lua @@ -23,7 +23,7 @@ http.TIMEOUT = 10 local t = socket.gettime() host = host or "diego.student.princeton.edu" -proxy = proxy or "http://dell-diego:3128" +proxy = proxy or "http://localhost:3128" prefix = prefix or "/luasocket-test" cgiprefix = cgiprefix or "/luasocket-test-cgi" index_file = "test/index.html"