Explorar el Código

middleware

- fix X-Instance-ID
Alexey Kim hace 1 año
padre
commit
e3e705b205
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      middleware/instance.go

+ 1 - 2
middleware/instance.go

@@ -23,8 +23,7 @@ func InstanceId() echo.MiddlewareFunc {
 
 			value := context.WithValue(c.Request().Context(), keyInstanceId, id)
 			c.SetRequest(c.Request().WithContext(value))
-
-			return nil
+			return next(c)
 		}
 	}
 }