mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-08 14:28:21 +01:00
Few extra changes...
This commit is contained in:
parent
97b26e0b66
commit
49445951a8
@ -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"
|
||||
|
@ -8,8 +8,8 @@
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
#include "compat-5.1.h"
|
||||
|
||||
#include "compat-5.1.h"
|
||||
#include "mime.h"
|
||||
|
||||
/*=========================================================================*\
|
||||
|
@ -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
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
#include "luasocket.h"
|
||||
#include "auxiliar.h"
|
||||
#include "timeout.h"
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user