We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb60a59 commit 3abeaebCopy full SHA for 3abeaeb
internal/dependencytrack/dependencytrack.go
@@ -35,7 +35,10 @@ type Vulnerability struct {
35
func setupConfig(url, apiKey string) *client.Configuration {
36
cfg := client.NewConfiguration()
37
cfg.AddDefaultHeader(ClientXApiKeyHeader, apiKey)
38
- cfg.Scheme = "https"
+ cfg.Scheme = "http"
39
+ if strings.HasPrefix(url, "https") {
40
+ cfg.Scheme = "https"
41
+ }
42
cfg.Servers = client.ServerConfigurations{
43
{
44
URL: url,
0 commit comments