moonbridge

changeset 49:649df11b1f5a

Bugfix in local error_response function
author jbe
date Thu Mar 19 22:49:28 2015 +0100 (2015-03-19)
parents 69f4a31c6e90
children 0dd15d642124
files moonbridge_http.lua
line diff
     1.1 --- a/moonbridge_http.lua	Thu Mar 19 19:31:47 2015 +0100
     1.2 +++ b/moonbridge_http.lua	Thu Mar 19 22:49:28 2015 +0100
     1.3 @@ -821,7 +821,7 @@
     1.4        })
     1.5        -- sends a minimalistic error response and enforces closing of the
     1.6        -- connection and returns the boolean value "survive"
     1.7 -      local function error_response(...)
     1.8 +      local function error_response(status, text)
     1.9          request:defer_reading()  -- don't read request body (because of possibly invalid state)
    1.10          request:send_status(status)
    1.11          request:send_header("Content-Type", "text/plain")

Impressum / About Us