1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

http: handle and print socket errors

This commit is contained in:
vitalyster
2019-10-10 20:24:36 +03:00
committed by Alexander Medvednikov
parent 4f4ac45670
commit a5ccc4673b
7 changed files with 34 additions and 8 deletions

View File

@ -32,7 +32,7 @@ fn init() int {
return 1
}
fn (req &Request) ssl_do(port int, method, host_name, path string) Response {
fn (req &Request) ssl_do(port int, method, host_name, path string) ?Response {
//ssl_method := C.SSLv23_method()
ssl_method := C.TLSv1_2_method()
if isnil(method) {