pull/1487/head^2
Alexander Medvednikov 2019-08-06 13:57:58 +02:00
parent e7fcc33597
commit eece058f18
2 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import net.urllib
import http
fn test_escape_unescape() {
/*
@ -10,3 +11,8 @@ fn test_escape_unescape() {
*/
}
fn test_http_get() {
assert http.get_text('https://vlang.io/version') == '0.1.5'
println('http ok')
}

View File

@ -15,10 +15,14 @@ struct C.SSL {
}
fn init_module() {
init_openssl()
}
fn init_openssl() {
C.SSL_library_init()
C.SSL_load_error_strings()
C.OPENSSL_config(0)
//C.SSL_load_error_strings()
//C.OPENSSL_config(0)
}
fn ssl_do(method, host_name, path string) string {