From 22348f224545ae1cb2304a3216bae0164e1381f0 Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Sun, 18 Aug 2019 20:04:17 +1000 Subject: [PATCH] http: add vschannel_cleanup() back --- vlib/http/backend_win.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/http/backend_win.v b/vlib/http/backend_win.v index 6bcd54877c..970b181ef9 100644 --- a/vlib/http/backend_win.v +++ b/vlib/http/backend_win.v @@ -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)) }