dangogh closed pull request #2709: TP: server.js - removes commented out code
URL: https://github.com/apache/trafficcontrol/pull/2709
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/traffic_portal/server.js b/traffic_portal/server.js
index d87851ec9..6494da548 100644
--- a/traffic_portal/server.js
+++ b/traffic_portal/server.js
@@ -92,39 +92,6 @@ if (app.get('env') === 'dev') {
app.set('env', 'production');
}
-// special handling required for dbdump. haven't got this to work yet
-// app.get('/dbdump', function (req, res) {
-// var port = (useSSL) ? config.sslPort : config.port,
-// options = {
-// method: 'GET',
-// host: 'localhost',
-// port: port,
-// path: '/api/1.2/dbdump',
-// headers: {
-// cookie: req.headers['cookie']
-// }
-// };
-//
-// var request = http.request(options, function(response) {
-// var data = [];
-// console.log(response.statusCode);
-// response.on('data', function(chunk) {
-// data.push(chunk);
-// });
-// response.on('end', function() {
-// data = Buffer.concat(data);
-// res.writeHead(200, {
-// 'Content-Type': 'application/download',
-// 'Content-Disposition': 'attachment; filename=foo.dump.gz',
-// 'Content-Length': data.length
-// });
-// res.end(data);
-// });
-// });
-//
-// request.end();
-// });
-
// Enable reverse proxy support in Express. This causes the
// the "X-Forwarded-Proto" header field to be trusted so its
// value can be used to determine the protocol. See
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services