LivelyKernel/life_star — pull request #3 by fbornhofen (2012-11-22 10:30:44+00:00)
Title: Possible fix for possible incompatible fix in jsDAV

mikedeboer just fixed https://github.com/mikedeboer/jsDAV/issues/57
This broke compatibility with expressjs (connect) when I installed LK using the shell script. I was not able to open worlds that I just saved:

http.js:687
throw new Error('Can\'t render headers after they are sent to the client.'
^
Error: Can't render headers after they are sent to the client.
at ServerResponse.OutgoingMessage._renderHeaders (http.js:687:11)
at ServerResponse.res._renderHeaders (/home/fb/.nvm/v0.8.12/lib/node_modules/livelykernel-scripts/node_modules/life_star/node_modules/express/node_modules/connect/lib/patch.js:69:27)
at ServerResponse.writeHead (http.js:951:20)
at ServerResponse.res.writeHead (/home/fb/.nvm/v0.8.12/lib/node_modules/livelykernel-scripts/node_modules/life_star/node_modules/express/node_modules/connect/lib/patch.js:75:22)
at httpGet (/home/fb/.nvm/v0.8.12/lib/node_modules/livelykernel-scripts/node_modules/life_star/node_modules/jsDAV/lib/DAV/handler.js:571:43)
at getHTTPHeaders (/home/fb/.nvm/v0.8.12/lib/node_modules/livelykernel-scripts/node_modules/life_star/node_modules/jsDAV/lib/DAV/handler.js:1487:17)
at getProperties (/home/fb/.nvm/v0.8.12/lib/node_modules/livelykernel-scripts/node_modules/life_star/node_modules/jsDAV/lib/DAV/handler.js:1505:20)
at getPropertiesForPath (/home/fb/.nvm/v0.8.12/lib/node_modules/livelykernel-scripts/node_modules/life_star/node_modules/jsDAV/lib/DAV/handler.js:1751:26)
at handler (/home/fb/.nvm/v0.8.12/lib/node_modules/livelykernel-scripts/node_modules/life_star/node_modules/jsDAV/node_modules/asyncjs/lib/async.js:371:33)
at handler (/home/fb/.nvm/v0.8.12/lib/node_modules/livelykernel-scripts/node_modules/life_star/node_modules/jsDAV/node_modules/asyncjs/lib/async.js:146:21)

Please try to reproduce.

My quick fix is to not install jsDAV from mikedeboer/jsDAV/master but from an older commit.

In the long run it might be better to play nicely with the jsDAV people.