Skip to content

Commit

Permalink
Merge pull request #575 from GDATASoftwareAG/golang/no_http_debug_log…
Browse files Browse the repository at this point in the history
…ging

golang: No HTTP protocol debug logging
  • Loading branch information
doxthree authored Aug 20, 2024
2 parents fb017fd + 2d7d09c commit ac7b450
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions golang/vaas/v2/pkg/vaas/vaas.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,17 +577,14 @@ func (v *vaas) uploadFile(file io.Reader, contentLength int64, url string, token
}

req.Header.Add("Authorization", token)
log.Println(req.Proto)
log.Println(req.ProtoMajor)
log.Println(req.ProtoMinor)

client := http.Client{
Transport: &http.Transport{
TLSNextProto: make(map[string]func(authority string, c *tls.Conn) http.RoundTripper),
},
}
httpResponse, err := client.Do(req)
log.Println(httpResponse.Proto)

if err != nil {
return err
}
Expand Down

0 comments on commit ac7b450

Please sign in to comment.