On Oct 4, 2009, at 12:37 AM, Yuri Takhteyev wrote:

HTTPResponse.filter[ #HTTPResponse.filter + 1 ] = function( aRequest,
aResponse ) aResponse.header[ 'connection' ] = 'close' end

Where?

Something along these lines:

local HTTP = require( 'HTTP' )
local HTTPResponse = require( 'HTTPResponse' )
local TCPServer = require( 'TCPServer' )
local WSAPI = require( 'WSAPI' )

HTTP[ '.*' ] = WSAPI( loadfile("sputnik.ws")() )
HTTPResponse.filter[ #HTTPResponse.filter + 1 ] = function( aRequest, aResponse ) aResponse.header[ 'connection' ] = 'close' end

TCPServer( '127.0.0.1', 1080 )( HTTP )

_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to