# HG changeset patch # User jbe # Date 1426801768 -3600 # Node ID 649df11b1f5a077ebe38c1f7da3a517e1182578c # Parent 69f4a31c6e90ecf15b0ea7c10172c408ce1a080c Bugfix in local error_response function diff -r 69f4a31c6e90 -r 649df11b1f5a moonbridge_http.lua --- a/moonbridge_http.lua Thu Mar 19 19:31:47 2015 +0100 +++ b/moonbridge_http.lua Thu Mar 19 22:49:28 2015 +0100 @@ -821,7 +821,7 @@ }) -- sends a minimalistic error response and enforces closing of the -- connection and returns the boolean value "survive" - local function error_response(...) + local function error_response(status, text) request:defer_reading() -- don't read request body (because of possibly invalid state) request:send_status(status) request:send_header("Content-Type", "text/plain")