projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod_storage_sql: Dynamically replace backquotes with double quotes when connecting...
[prosody.git]
/
net
/
httpclient_listener.lua
diff --git
a/net/httpclient_listener.lua
b/net/httpclient_listener.lua
index a688a3e00fcd05ea294adde810c91bba62be5212..dfa250623af523d18c4950608c42cfe043afd78f 100644
(file)
--- a/
net/httpclient_listener.lua
+++ b/
net/httpclient_listener.lua
@@
-1,6
+1,6
@@
-- Prosody IM
-- Prosody IM
--- Copyright (C) 2008-20
09
Matthew Wild
--- Copyright (C) 2008-20
09
Waqas Hussain
+-- Copyright (C) 2008-20
10
Matthew Wild
+-- Copyright (C) 2008-20
10
Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
@@
-15,7
+15,7
@@
local buffers = {}; -- Buffers of partial lines
local httpclient = { default_port = 80, default_mode = "*a" };
local httpclient = { default_port = 80, default_mode = "*a" };
-function httpclient.
listener
(conn, data)
+function httpclient.
onincoming
(conn, data)
local request = requests[conn];
if not request then
local request = requests[conn];
if not request then
@@
-28,7
+28,7
@@
function httpclient.listener(conn, data)
end
end
end
end
-function httpclient.disconnect(conn, err)
+function httpclient.
on
disconnect(conn, err)
local request = requests[conn];
if request and err ~= "closed" then
request:reader(nil);
local request = requests[conn];
if request and err ~= "closed" then
request:reader(nil);