From 4d369727e1808c64115cd1599174165de5ab0d27 Mon Sep 17 00:00:00 2001 From: Christopher G <59037609+ChrisG661@users.noreply.github.com> Date: Sun, 20 Sep 2020 21:09:58 +0800 Subject: [PATCH] Changed base url to use HTTPS Himawari 8 server now redirects HTTP request to HTTPS, and HTTP no longer works --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e5578dc..547bb8d 100644 --- a/index.js +++ b/index.js @@ -45,7 +45,7 @@ var himawari = function (userOptions) { // The base URL for the Himawari-8 Satellite uploads var image_type = options.infrared ? 'INFRARED_FULL' : 'D531106'; - var base_url = 'http://himawari8-dl.nict.go.jp/himawari8/img/' + image_type; + var base_url = 'https://himawari8-dl.nict.go.jp/himawari8/img/' + image_type; log('Resolving date...'); resolveDate(base_url, options.date, function (err, now) {