mirror of
https://github.com/fergalmoran/dss.web.git
synced 2026-02-15 04:25:41 +00:00
Merge branch 'release/3.4.2'
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dssweb",
|
||||
"version": "3.4.1",
|
||||
"version": "3.4.2",
|
||||
"main": "server/app.js",
|
||||
"dependencies": {
|
||||
"body-parser": "~1.5.0",
|
||||
|
||||
@@ -42,6 +42,7 @@ module.exports = function (app) {
|
||||
var url = _parseUrl((app.get('apiUrl') + req.path + '/').replace(/([^:]\/)\/+/g, "$1"));
|
||||
console.log('Api url: ' + url);
|
||||
var fun = isHttps(url) ? https : http;
|
||||
console.log("Using protocol: " + isHttps(url) ? "https" : "http");
|
||||
fun.get(url, function (api_res) {
|
||||
var body = '';
|
||||
api_res.on('data', function (chunk) {
|
||||
|
||||
Reference in New Issue
Block a user