1
0
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:
Makis Maropoulos
2016-06-18 20:26:35 +03:00
parent 78aa4f7681
commit 15139e33b7
3 changed files with 9 additions and 7 deletions

View File

@@ -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

View File

@@ -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) {}