Software / code / prosody
Comparison
net/httpserver.lua @ 4165:9864f1375f3d
net.httpserver: Removed an unused function.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Wed, 23 Feb 2011 07:26:54 +0500 |
| parent | 4164:843240294be1 |
| child | 4228:1c2daf61c348 |
comparison
equal
deleted
inserted
replaced
| 4164:843240294be1 | 4165:9864f1375f3d |
|---|---|
| 27 local http_servers = {}; | 27 local http_servers = {}; |
| 28 | 28 |
| 29 module "httpserver" | 29 module "httpserver" |
| 30 | 30 |
| 31 local default_handler; | 31 local default_handler; |
| 32 | |
| 33 local function expectbody(reqt) | |
| 34 return reqt.method == "POST"; | |
| 35 end | |
| 36 | 32 |
| 37 local function send_response(request, response) | 33 local function send_response(request, response) |
| 38 -- Write status line | 34 -- Write status line |
| 39 local resp; | 35 local resp; |
| 40 if response.body or response.headers then | 36 if response.body or response.headers then |