Skip to content

Commit

Permalink
[tests] Test https connection to haxelib
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Nov 23, 2024
1 parent 54af892 commit fd1f72d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/std/Test.hx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys.Http;
import haxe.zip.Compress;
import haxe.zip.Uncompress;
import haxe.zip.FlushMode;
Expand Down Expand Up @@ -624,6 +625,15 @@ class Test extends utest.Test

SslTest.socket_init();

final output = new haxe.io.BytesOutput();
final http = new Http("https://haxelib-files.haxe.org/files/3.0/haxelib-4,0,3.zip");
// final http = new Http("https://httpforever.com/");
http.onError = function(msg) {
throw msg;
};

http.customRequest(false, output);

Assert.pass();
}

Expand Down

0 comments on commit fd1f72d

Please sign in to comment.