From 9c62246bee7cf0470043b720baff757870e0258d Mon Sep 17 00:00:00 2001 From: victor7780 Date: Mon, 27 May 2024 07:07:51 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=AA=E8=83=BD=E8=AF=B7?= =?UTF-8?q?=E6=B1=82http=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conn/connection.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conn/connection.go b/conn/connection.go index 69019800..45e73049 100644 --- a/conn/connection.go +++ b/conn/connection.go @@ -148,9 +148,9 @@ func (op *requestOp) wait(ctx context.Context, c *Connection) (*jsonrpcMessage, // not affect subsequent interactions with the client. func DialContextHTTP(rawurl string) (*Connection, error) { rawurl = strings.ToLower(rawurl) - if !strings.Contains(rawurl, "http://") { - rawurl = "http://" + rawurl - } + //if !strings.Contains(rawurl, "http://") { + // rawurl = "http://" + rawurl + //} return DialHTTP(rawurl) }