1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

add Configuration.URLParamSeparator

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-11-29 10:49:49 +02:00
parent 29c29e79e5
commit 8cf891ff25
7 changed files with 55 additions and 12 deletions

View File

@@ -185,6 +185,8 @@ func Handler(s *neffos.Server, idGenerator ...IDGenerator) context.Handler {
// Upgrade upgrades the request and returns a new websocket Conn.
// Use `Handler` for higher-level implementation instead.
func Upgrade(ctx *context.Context, idGen IDGenerator, s *neffos.Server) *neffos.Conn {
/* Do NOT return the error as it is captured on the OnUpgradeError listener,
the end-developer should not be able to write to this http client directly. */
ctx.DisablePoolRelease()
conn, upgradeErr := s.Upgrade(ctx.ResponseWriter(), ctx.Request(), func(socket neffos.Socket) neffos.Socket {