Просмотр исходного кода

Merge pull request #2806 from Blank101/https_cpp

Https support for cpp
Nicolas Cannasse 10 лет назад
Родитель
Сommit
b8a9898758
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      std/haxe/Http.hx

+ 4 - 0
std/haxe/Http.hx

@@ -383,8 +383,12 @@ class Http {
 				#elseif java
 				sock = new java.net.SslSocket();
 				#elseif hxssl
+				#if neko
 				sock = new neko.tls.Socket();
 				#else
+				sock = new sys.ssl.Socket();
+				#end
+				#else
 				throw "Https is only supported with -lib hxssl";
 				#end
 			} else