Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions commands/features-battle.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ exports.commands = {
if (!link) return this.reply(this.trad('u1') + ': ' + this.cmdToken + cmd + ' ' + this.trad('u2'));
if (link.substr(-1) === '/') link = link.substr(0, link.length - 1);
var splitedLink = link.split('/');
link = 'http://hastebin.com/raw/' + splitedLink[splitedLink.length - 1];
link = 'https://hastebin.com/raw/' + splitedLink[splitedLink.length - 1];
if (!Formats[format]) return this.reply(this.trad('format') + " __" + format + "__ " + this.trad('notexists'));
this.reply(this.trad('download') + '... (' + link + ')');
var http = require('http');
var http = require('https');

@Lord-Haji Lord-Haji May 25, 2017

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable http should be renamed to https (coz It looks kinda weird)
And change its references too obv

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's truly unnecessary if https is defined

http.get(link, function (res) {
var data = '';
res.on('data', function (part) {
Expand Down