Skip to content

Commit

Permalink
update JetStream URL (#3165)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl committed May 31, 2018
1 parent 5843494 commit c767490
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/fetch.js
@@ -1,4 +1,5 @@
var fs = require("fs");
var parse = require("url").parse;
var path = require("path");

try {
Expand All @@ -19,7 +20,9 @@ module.exports = function(url, callback) {
var result = read(url);
result.on("error", function(e) {
if (e.code != "ENOENT") return callback(e);
require(url.slice(0, url.indexOf(":"))).get(url, function(res) {
var options = parse(url);
options.rejectUnauthorized = false;
require(options.protocol.slice(0, -1)).get(options, function(res) {
if (res.statusCode !== 200) return callback(res);
res.pipe(fs.createWriteStream(local(url)).on("close", function() {
callback(null, read(url));
Expand Down
2 changes: 1 addition & 1 deletion test/jetstream.js
Expand Up @@ -3,7 +3,7 @@

"use strict";

var site = "http://browserbench.org/JetStream";
var site = "https://browserbench.org/JetStream";
if (typeof phantom == "undefined") {
require("../tools/exit");
var args = process.argv.slice(2);
Expand Down

0 comments on commit c767490

Please sign in to comment.