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:
parent
4a27b8f43d
commit
22348f2245
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user