mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-13 06:04:31 +02:00
http.lua updated. still needs proxy support.
code.lua updated. looks neat.
This commit is contained in:
@ -99,7 +99,7 @@ end
|
||||
function getbyhttp(url, file, size)
|
||||
local response = socket.http.request_cb(
|
||||
{url = url},
|
||||
{body_cb = receive2disk(file, size)}
|
||||
{body_cb = receive2disk(file, size)}
|
||||
)
|
||||
print()
|
||||
if response.code ~= 200 then print(response.status or response.error) end
|
||||
|
Reference in New Issue
Block a user