http: add vschannel_cleanup() back

pull/1648/head
joe-conigliaro 2019-08-18 20:04:17 +10:00 committed by Alexander Medvednikov
parent 4a27b8f43d
commit 22348f2245
1 changed files with 2 additions and 2 deletions

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))
}