Few extra changes...
This commit is contained in:
parent
97b26e0b66
commit
49445951a8
@ -20,11 +20,11 @@
|
|||||||
#include <lua.h>
|
#include <lua.h>
|
||||||
#include <lauxlib.h>
|
#include <lauxlib.h>
|
||||||
#include "compat-5.1.h"
|
#include "compat-5.1.h"
|
||||||
|
#include "luasocket.h"
|
||||||
|
|
||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
* LuaSocket includes
|
* LuaSocket includes
|
||||||
\*=========================================================================*/
|
\*=========================================================================*/
|
||||||
#include "luasocket.h"
|
|
||||||
|
|
||||||
#include "auxiliar.h"
|
#include "auxiliar.h"
|
||||||
#include "except.h"
|
#include "except.h"
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
#include <lua.h>
|
#include <lua.h>
|
||||||
#include <lauxlib.h>
|
#include <lauxlib.h>
|
||||||
#include "compat-5.1.h"
|
|
||||||
|
|
||||||
|
#include "compat-5.1.h"
|
||||||
#include "mime.h"
|
#include "mime.h"
|
||||||
|
|
||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
|
@ -69,7 +69,7 @@ socket.sinkt["http-chunked"] = function(sock)
|
|||||||
__call = function(self, chunk, err)
|
__call = function(self, chunk, err)
|
||||||
if not chunk then return sock:send("0\r\n\r\n") end
|
if not chunk then return sock:send("0\r\n\r\n") end
|
||||||
local size = string.format("%X\r\n", string.len(chunk))
|
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
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
#include <lua.h>
|
#include <lua.h>
|
||||||
#include <lauxlib.h>
|
#include <lauxlib.h>
|
||||||
|
|
||||||
#include "luasocket.h"
|
|
||||||
#include "auxiliar.h"
|
#include "auxiliar.h"
|
||||||
#include "timeout.h"
|
#include "timeout.h"
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ http.TIMEOUT = 10
|
|||||||
local t = socket.gettime()
|
local t = socket.gettime()
|
||||||
|
|
||||||
host = host or "diego.student.princeton.edu"
|
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"
|
prefix = prefix or "/luasocket-test"
|
||||||
cgiprefix = cgiprefix or "/luasocket-test-cgi"
|
cgiprefix = cgiprefix or "/luasocket-test-cgi"
|
||||||
index_file = "test/index.html"
|
index_file = "test/index.html"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user