Skip to content

Instantly share code, notes, and snippets.

@danfinlay
Last active December 17, 2015 02:28
Show Gist options
  • Save danfinlay/5535710 to your computer and use it in GitHub Desktop.
Save danfinlay/5535710 to your computer and use it in GitHub Desktop.
Webcam forwarder try #2, still not working...
var r = request('http://address')
http.createServer(function(request, response) {
response.setHeader('Content-Type', 'multipart/x-mixed-replace');
response.setHeader('Accept-Ranges', 'bytes');
r.pipe(response)
r.on('end', function(){
response.end()
})
}).listen(3021);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment