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

http: add vschannel_cleanup() back

This commit is contained in:
joe-conigliaro 2019-08-18 20:04:17 +10:00 committed by Alexander Medvednikov
parent 4a27b8f43d
commit 22348f2245

View File

@ -22,9 +22,9 @@ fn ssl_do(method, host_name, path string) Response {
// dynamically increase in vschannel.c if needed
mut buff := malloc(44000)
p := if path == '' { '/' } else { path }
req := build_request_headers('', method, host_name, p)
req := build_request_headers('', method, host_name, path)
length := int(C.request(host_name.str, req.str, buff))
C.vschannel_cleanup()
return parse_response(string(buff, length))
}