Skip to content

Commit

Permalink
修改只能请求http问题
Browse files Browse the repository at this point in the history
  • Loading branch information
victor7780 committed May 27, 2024
1 parent 4b1b05a commit 9c62246
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conn/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 9c62246

Please sign in to comment.