Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage/s3: Fix proxy with no-verify-ssl flag #457

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unused param
  • Loading branch information
boraberke committed Jul 4, 2022
commit 7db028d2ad0883c32f0e47a4a64536c6baebc0af
2 changes: 1 addition & 1 deletion e2e/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func TestAppProxy(t *testing.T) {
for _, tc := range testcases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
httpProxy, cleanupProxy := proxyFake(t)
httpProxy, cleanupProxy := proxyFake()
defer cleanupProxy()
igungor marked this conversation as resolved.
Show resolved Hide resolved
os.Setenv("http_proxy", httpProxy)
_, s5cmd, cleanup := setup(t, withFakeProxy())
Expand Down
5 changes: 2 additions & 3 deletions e2e/proxy_fake.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package e2e

import (
io "io"
"io"
"log"
"net"
"net/http"
"net/http/httptest"
"strings"
"testing"
)

// Hop-by-hop headers. These are removed when sent to the backend.
Expand Down Expand Up @@ -104,7 +103,7 @@ func successfulRequests() bool {
}
return true
}
func proxyFake(t *testing.T) (string, func()) {
func proxyFake() (string, func()) {
handler := &proxy{}
proxysrv := httptest.NewServer(handler)
cleanup := func() {
Expand Down