fix: websocket path rewrite (#2300)

This commit is contained in:
Reto Kupferschmid
2024-11-04 23:12:35 +01:00
committed by GitHub
parent 96f0288a36
commit 64e736f668
4 changed files with 13 additions and 4 deletions
+3 -3
View File
@@ -253,7 +253,7 @@ var _ = Describe("Proxy Suite", func() {
URL: "http://example.localhost/different/backend/path/1234",
Header: map[string][]string{
"Gap-Auth": {""},
"Gap-Signature": {"sha256 jeAeM7wHSj2ab/l9YPvtTJ9l/8q1tpY2V/iwXF48bgw="},
"Gap-Signature": {"sha256 Pzy0fSFhzbhY0R9rj8vl5LCiIQaKVB0s6h9BADgIT4I="},
},
Body: []byte{},
Host: "example.localhost",
@@ -274,7 +274,7 @@ var _ = Describe("Proxy Suite", func() {
URL: "http://example.localhost/different/backend/path/1234/abc",
Header: map[string][]string{
"Gap-Auth": {""},
"Gap-Signature": {"sha256 rAkAc9gp7EndoOppJuvbuPnYuBcqrTkBnQx6iPS8xTA="},
"Gap-Signature": {"sha256 uqIAxSgz+onqHDMMl/EAZWbwSw56PzM90iCocNUEqmw="},
},
Body: []byte{},
Host: "example.localhost",
@@ -324,7 +324,7 @@ var _ = Describe("Proxy Suite", func() {
URL: "http://example.localhost/double-match/rewrite/foo",
Header: map[string][]string{
"Gap-Auth": {""},
"Gap-Signature": {"sha256 eYyUNdsrTmnvFpavpP8AdHGUGzqJ39QEjqn0/3fQPHA="},
"Gap-Signature": {"sha256 Ii7wKYBkRkJH556gRUsVUwGPgF7IG7V7X4vhkiyzfQ0="},
},
Body: []byte{},
Host: "example.localhost",