moonbridge
changeset 192:5adfc36ca73f
Added request:consume_input() call to example_application.lua
author | jbe |
---|---|
date | Fri Jun 19 19:47:03 2015 +0200 (2015-06-19) |
parents | ab12ecb399f1 |
children | d338068fad0d |
files | example_application.lua |
line diff
1.1 --- a/example_application.lua Fri Jun 19 19:35:23 2015 +0200 1.2 +++ b/example_application.lua Fri Jun 19 19:47:03 2015 +0200 1.3 @@ -282,6 +282,7 @@ 1.4 request:send_data("<h1>Moonbridge Network Server for Lua – Example Application</h1>\n") 1.5 request:send_data("<h2>POST request successful</h2>\n") 1.6 request:send_data('<table>\n<thead><th>File name</th><th>Content type</th><th class="numeric">Bytes received</th></thead>\n<tbody>\n') 1.7 + request:consume_input() 1.8 for i, file in ipairs(files) do 1.9 request:send_data("<tr>") 1.10 request:send_data("<td>", http.encode_html(file.file_name or "(unknown)"), "</td>")