Skip to content

Commit

Permalink
fix: runned gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ANDRVV committed Jul 30, 2024
1 parent 828e019 commit 82cacaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions downbuff.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func Link(url string, config SockConf) (linknode linkc) {
config.Buffer = 2048
}
linkconfig := linkc{host: addr, buffer: config.Buffer, timeout: config.Timeout}

if scheme == "https" {
var ref *tls.Conn
ref, err = tls.Dial("tcp", addr, &tls.Config{InsecureSkipVerify: false})
Expand Down Expand Up @@ -79,7 +79,7 @@ func (conn *linkc) Req(method reqmethod, body BodyRequest) (success bool, respon
withPayload = true
}
bodyRequest := append(headers, payload...)

if wrted, err := conn.ref.Write(bodyRequest); wrted != len(bodyRequest) || err != nil {
panic(errWarn(SENDREQ_ERR, conn.host))
}
Expand Down
2 changes: 1 addition & 1 deletion httpbody.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ type BodyResponse struct {
StatusCode status
StatusText string
Header Header
UnkHeaders map[string]string
UnkHeaders map[string]string
Data []byte
}

Expand Down

0 comments on commit 82cacaa

Please sign in to comment.