summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-16 14:08:55 +0300
committerValery Piashchynski <[email protected]>2021-06-16 14:08:55 +0300
commite400e1db79b1b173458dec90eeb59ebf3c0e7c37 (patch)
treee44e63c9ef790aa8822da72204fe2600db0c3a10
parent8483f605037317e9ac266f893d8ef80ff3a6a56e (diff)
- Update CHANGELOG
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r--CHANGELOG.md1
-rw-r--r--plugins/websockets/origin_test.go2
2 files changed, 1 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cbb9936b..6f7cf2cc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ v2.3.1 (_.06.2021)
- 🐛 Fix: Bugs with `boltdb` storage: [Boom](https://github.com/spiral/roadrunner/issues/717), [Boom](https://github.com/spiral/roadrunner/issues/718), [Boom](https://github.com/spiral/roadrunner/issues/719)
- 🐛 Fix: Bug with incorrect redis initialization and usage [Bug](https://github.com/spiral/roadrunner/issues/720)
- 🐛 Fix: Bug, Goridge duplicate error messages [Bug](https://github.com/spiral/goridge/issues/128)
+- 🐛 Fix: Bug, incorrect request `origin` check [Bug](https://github.com/spiral/roadrunner/issues/727)
## 📦 Packages:
diff --git a/plugins/websockets/origin_test.go b/plugins/websockets/origin_test.go
index ccd94d21..e877fad3 100644
--- a/plugins/websockets/origin_test.go
+++ b/plugins/websockets/origin_test.go
@@ -41,7 +41,6 @@ func TestConfig_OriginWildCard(t *testing.T) {
assert.False(t, isOriginAllowed("asde!@#!!@#!%", cfg))
assert.False(t, isOriginAllowed("http://*.domain.com", cfg))
-
assert.False(t, isOriginAllowed("https://*site.com", cfg))
assert.True(t, isOriginAllowed("https://some.my.site.com", cfg))
}
@@ -63,7 +62,6 @@ func TestConfig_OriginWildCard2(t *testing.T) {
assert.False(t, isOriginAllowed("asde!@#!!@#!%", cfg))
assert.False(t, isOriginAllowed("http://*.domain.com", cfg))
-
assert.False(t, isOriginAllowed("https://*site.com", cfg))
assert.True(t, isOriginAllowed("https://my.bad.com", cfg))
}