Mercurial > prosody-hg
comparison net/httpserver_listener.lua @ 3046:92173d8a35d3
net/httpserver_listener: Ignore empty strings on incoming data.
| author | Brian Cully <bjc@kublai.com> |
|---|---|
| date | Wed, 28 Apr 2010 16:52:06 +0400 |
| parents | b7049746bd29 |
| children | 820ae39e06de |
comparison
equal
deleted
inserted
replaced
| 3042:b1961f6c9853 | 3046:92173d8a35d3 |
|---|---|
| 27 if conn.ssl() then | 27 if conn.ssl() then |
| 28 request.secure = true; | 28 request.secure = true; |
| 29 end | 29 end |
| 30 end | 30 end |
| 31 | 31 |
| 32 if data then | 32 if data and data ~= "" then |
| 33 request_reader(request, data); | 33 request_reader(request, data); |
| 34 end | 34 end |
| 35 end | 35 end |
| 36 | 36 |
| 37 function httpserver.disconnect(conn, err) | 37 function httpserver.disconnect(conn, err) |
