From d8d5c421c33b1cc5416ff87f6a7c3837e5176d4d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 28 Aug 2018 13:49:19 -0400 Subject: Support https imports. Adds hyper-rustls to the build. Use ring for sha1 instead of "ssh1" crate. Fixes #528. --- tests/https_import.ts | 5 +++++ tests/https_import.ts.out | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 tests/https_import.ts create mode 100644 tests/https_import.ts.out (limited to 'tests') diff --git a/tests/https_import.ts b/tests/https_import.ts new file mode 100644 index 000000000..faaf2175f --- /dev/null +++ b/tests/https_import.ts @@ -0,0 +1,5 @@ +// TODO Use https://localhost:4555/ but we need more infrastructure to +// support verifying self-signed certificates. +import { printHello } from "https://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts"; + +printHello(); diff --git a/tests/https_import.ts.out b/tests/https_import.ts.out new file mode 100644 index 000000000..efc3fd543 --- /dev/null +++ b/tests/https_import.ts.out @@ -0,0 +1,2 @@ +Downloading https://gist.githubusercontent.com/ry/f12b2aa3409e6b52645bc346a9e22929/raw/79318f239f51d764384a8bded8d7c6a833610dde/print_hello.ts +Hello -- cgit v1.2.3