# HG changeset patch # User jbe # Date 1424175308 -3600 # Node ID 59f485dc48ea58416c83ebd7d8f79dce08d93ff1 # Parent fd542c33020bf9e0a1c701edeadc64e1afb13460 Removed method request:send_text_status_response(...); Added helloworld.lua diff -r fd542c33020b -r 59f485dc48ea example_application.lua --- a/example_application.lua Tue Feb 17 04:10:38 2015 +0100 +++ b/example_application.lua Tue Feb 17 13:15:08 2015 +0100 @@ -1,5 +1,7 @@ -- Moonbridge example application -- invoke with ./moonbridge example_application.lua +-- +-- see helloworld.lua for a simpler example local http = require "moonbridge_http" @@ -61,13 +63,11 @@ }, function(request) - local function file_not_found() - request:send_status("404 Not Found") - request:send_header("Content-Type", "text/html; chatset=UTF-8") - request:send_data("\n") - request:send_data("