mirror of
https://github.com/kataras/iris.git
synced 2025-12-27 06:47:08 +00:00
I forgot to use sort.Sort lawl
This commit is contained in:
@@ -108,7 +108,10 @@ func (i *iriscontrol) initializeChild() {
|
||||
})
|
||||
|
||||
i.child.UseFunc(func(ctx *iris.Context) {
|
||||
///TODO: Remove this and make client-side basic auth when websocket connection.
|
||||
///TODO: Remove this and make client-side basic auth when websocket connection. (user@password/host.. on chronium)
|
||||
// FOR GOOGLE CHROME/CHRONIUM
|
||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=123862
|
||||
// CROSS DOMAIN IS DISABLED so I think this is ok solution for now...
|
||||
if ctx.PathString() == i.child.Config.Websocket.Endpoint {
|
||||
ctx.Next()
|
||||
return
|
||||
|
||||
@@ -77,6 +77,4 @@ func (i *iriscontrol) GetDescription() string {
|
||||
|
||||
// PreClose any clean-up
|
||||
// temporary is empty because all resources are cleaned graceful by the iris' station
|
||||
func (i *iriscontrol) PreClose(s *iris.Framework) {
|
||||
s.Logger.Infof("Main server terminated")
|
||||
}
|
||||
func (i *iriscontrol) PreClose(s *iris.Framework) {}
|
||||
|
||||
Reference in New Issue
Block a user