mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http: initial windows schannel http support
This commit is contained in:
committed by
Alexander Medvednikov
parent
181a39d752
commit
d9a83481a5
@@ -108,7 +108,8 @@ pub fn (req &Request) do() Response {
|
||||
if !is_ssl {
|
||||
panic('non https requests are not supported right now')
|
||||
}
|
||||
s := ssl_do(req.typ, url.host, url.path)
|
||||
s := ssl_do(req.typ, url.host, url.path)
|
||||
// s := ssl_do(req.typ, url.host, url.path)
|
||||
first_header := s.all_before('\n')
|
||||
mut status_code := 0
|
||||
if first_header.contains('HTTP/') {
|
||||
|
||||
Reference in New Issue
Block a user