forked from Firepup650/firepup-site
16 lines
408 B
Text
16 lines
408 B
Text
|
old code for image requests:
|
||
|
/*
|
||
|
var options = {
|
||
|
host: 'image-hosting.firepup650.repl.co',
|
||
|
path: path,
|
||
|
method: 'GET'
|
||
|
};
|
||
|
var request = http.get(options, function(response) {
|
||
|
res.writeHead(response.statusCode, {
|
||
|
'Content-Type': response.headers['content-type']
|
||
|
});
|
||
|
response.pipe(res);
|
||
|
}).on("error", function(e) {
|
||
|
console.log("Got error: " + e.message, e);
|
||
|
});
|
||
|
*/
|