You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/08/17 17:27:06 UTC

[trafficcontrol] branch master updated: removes commented out code

This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new b4bea29  removes commented out code
b4bea29 is described below

commit b4bea293453e961f8e65a8294566a050331d0c04
Author: Jeremy Mitchell <mi...@gmail.com>
AuthorDate: Thu Aug 16 20:30:46 2018 -0600

    removes commented out code
---
 traffic_portal/server.js | 33 ---------------------------------
 1 file changed, 33 deletions(-)

diff --git a/traffic_portal/server.js b/traffic_portal/server.js
index d87851e..6494da5 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