From d42f91a0fe3f2fe69df2b4589505e394921c8a1a Mon Sep 17 00:00:00 2001 From: Gonzalo Gasca Meza Date: Fri, 15 Jan 2021 23:02:41 -0800 Subject: [PATCH 1/2] Update main.go Correct typo --- testing/websockets/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/websockets/main.go b/testing/websockets/main.go index c659dfa..69a5c60 100644 --- a/testing/websockets/main.go +++ b/testing/websockets/main.go @@ -18,7 +18,7 @@ limitations under the License. // manually test changes to the code in the agent/websockets package // // Example usage: -// go build -o ~/bin/test-websocket-sever testing/websockets/main.go +// go build -o ~/bin/test-websocket-server testing/websockets/main.go // ~/bin/test-websocket-server --port 8081 --backend http://localhost:8082 package main From 272ee2abca6b201f1e71c7a1604d53047baa211f Mon Sep 17 00:00:00 2001 From: Gonzalo Gasca Meza Date: Tue, 19 Jan 2021 01:36:44 -0800 Subject: [PATCH 2/2] Update main.go --- testing/websockets/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/websockets/main.go b/testing/websockets/main.go index 69a5c60..434391f 100644 --- a/testing/websockets/main.go +++ b/testing/websockets/main.go @@ -56,11 +56,11 @@ func main() { backendProxy := httputil.NewSingleHostReverseProxy(backendURL) shimmingProxy, err := websockets.Proxy(context.Background(), backendProxy, backendURL.Host, *shimPath, true, func(h http.Handler) http.Handler { return h }) if err != nil { - log.Fatal("Failure starting the websocket-shimming proxy: %v", err) + log.Fatalf("Failure starting the websocket-shimming proxy: %v", err) } shimFunc, err := websockets.ShimBody(*shimPath) if err != nil { - log.Fatal("Failure setting up shim injection code: %v", err) + log.Fatalf("Failure setting up shim injection code: %v", err) } backendProxy.ModifyResponse = shimFunc