X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=net%2Fhttpserver_listener.lua;h=dd14b43c9926f845197090edd8be626911757d0b;hb=9e7852cb46aea48f82809d1c8d67f9d036178779;hp=5a261a43cb40e314bf5d735793c1032c7728d590;hpb=4e9ad86f42f78e32d5a983b62277a0552c853a9c;p=prosody.git diff --git a/net/httpserver_listener.lua b/net/httpserver_listener.lua index 5a261a43..dd14b43c 100644 --- a/net/httpserver_listener.lua +++ b/net/httpserver_listener.lua @@ -1,6 +1,6 @@ -- Prosody IM --- Copyright (C) 2008-2009 Matthew Wild --- Copyright (C) 2008-2009 Waqas Hussain +-- Copyright (C) 2008-2010 Matthew Wild +-- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. @@ -24,12 +24,12 @@ function httpserver.onincoming(conn, data) requests[conn] = request; -- If using HTTPS, request is secure - if conn.ssl() then + if conn:ssl() then request.secure = true; end end - if data then + if data and data ~= "" then request_reader(request, data); end end