From 2197c210e7b163042d86ef4f4cac9c8a7d76486b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 10 Aug 2019 16:04:41 +0300 Subject: [PATCH] http: remove superfluous new line in stdout, when making a http request. --- vlib/http/backend_nix.v | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vlib/http/backend_nix.v b/vlib/http/backend_nix.v index e951ae48e8..089cbf2127 100644 --- a/vlib/http/backend_nix.v +++ b/vlib/http/backend_nix.v @@ -61,7 +61,6 @@ fn ssl_do(method, host_name, path string) Response { if res != 1 { } res = C.SSL_set_tlsext_host_name(ssl, host_name.str) - out := C.BIO_new_fp(stdout, C.BIO_NOCLOSE) res = C.BIO_do_connect(web) res = C.BIO_do_handshake(web) cert := C.SSL_get_peer_certificate(ssl) @@ -69,7 +68,6 @@ fn ssl_do(method, host_name, path string) Response { /////// s := build_request_headers('', method, host_name, path) C.BIO_puts(web, s.str) - C.BIO_puts(out, '\n') mut sb := strings.new_builder(100) for { buff := [1536]byte @@ -81,9 +79,6 @@ fn ssl_do(method, host_name, path string) Response { break } } - if !isnil(out) { - C.BIO_free(out) - } if !isnil(web) { C.BIO_free_all(web) }