Few extra changes...

This commit is contained in:
Diego Nehab 2005-01-02 22:51:33 +00:00
parent 97b26e0b66
commit 49445951a8
5 changed files with 4 additions and 5 deletions

View File

@ -20,11 +20,11 @@
#include <lua.h>
#include <lauxlib.h>
#include "compat-5.1.h"
#include "luasocket.h"
/*=========================================================================*\
* LuaSocket includes
\*=========================================================================*/
#include "luasocket.h"
#include "auxiliar.h"
#include "except.h"

View File

@ -8,8 +8,8 @@
#include <lua.h>
#include <lauxlib.h>
#include "compat-5.1.h"
#include "compat-5.1.h"
#include "mime.h"
/*=========================================================================*\

View File

@ -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

View File

@ -9,7 +9,6 @@
#include <lua.h>
#include <lauxlib.h>
#include "luasocket.h"
#include "auxiliar.h"
#include "timeout.h"

View File

@ -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"