Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Helm
Commits
a6ea6634
Unverified
Commit
a6ea6634
authored
4 years ago
by
Matt Farina
Browse files
Options
Download
Email Patches
Plain Diff
Fixing per gofmt
Signed-off-by:
Matt Farina
<
matt@mattfarina.com
>
parent
1da74ed1
release-3.2
v3.2.4
v3.2.3
v3.2.2
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/getter/httpgetter.go
+1
-1
pkg/getter/httpgetter.go
pkg/getter/httpgetter_test.go
+1
-1
pkg/getter/httpgetter_test.go
with
2 additions
and
2 deletions
+2
-2
pkg/getter/httpgetter.go
+
1
-
1
View file @
a6ea6634
...
...
@@ -92,7 +92,7 @@ func NewHTTPGetter(options ...Option) (Getter, error) {
func
(
g
*
HTTPGetter
)
httpClient
()
(
*
http
.
Client
,
error
)
{
transport
:=
&
http
.
Transport
{
DisableCompression
:
true
,
Proxy
:
http
.
ProxyFromEnvironment
,
Proxy
:
http
.
ProxyFromEnvironment
,
}
if
(
g
.
opts
.
certFile
!=
""
&&
g
.
opts
.
keyFile
!=
""
)
||
g
.
opts
.
caFile
!=
""
{
tlsConf
,
err
:=
tlsutil
.
NewClientTLS
(
g
.
opts
.
certFile
,
g
.
opts
.
keyFile
,
g
.
opts
.
caFile
)
...
...
This diff is collapsed.
Click to expand it.
pkg/getter/httpgetter_test.go
+
1
-
1
View file @
a6ea6634
...
...
@@ -286,4 +286,4 @@ func TestHTTPGetterTarDownload(t *testing.T) {
if
mimeType
!=
expectedMimeType
{
t
.
Fatalf
(
"Expected response with MIME type %s, but got %s"
,
expectedMimeType
,
mimeType
)
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help