File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package dotweb
3
3
// Global define
4
4
const (
5
5
// Version current version
6
- Version = "1.7.21 "
6
+ Version = "1.7.22 "
7
7
)
8
8
9
9
// Log define
Original file line number Diff line number Diff line change @@ -533,7 +533,7 @@ type LogJson struct {
533
533
// check request is the websocket request
534
534
// check Connection contains upgrade
535
535
func checkIsWebSocketRequest (req * http.Request ) bool {
536
- if strings .Index (strings .ToLower (req .Header .Get ("Connection" )), "upgrade" ) >= 0 {
536
+ if strings .Contains (strings .ToLower (req .Header .Get ("Connection" )), "upgrade" ) {
537
537
return true
538
538
}
539
539
return false
Original file line number Diff line number Diff line change 1
1
## dotweb版本记录:
2
2
3
+ ####Version 1.7.22
4
+ * tip: use strings.Contains instead strings.Index on server.go
5
+ * Thanks for @testwill #253 !
6
+ * 2023-12-13 08:00 at ShangHai
7
+
3
8
####Version 1.7.21
4
9
* feature: add SessionManager.RemoveSessionState to delete the session state associated with a specific session ID
5
10
* feature: add HttpContext.DestorySession() to delete all contents of the session and set the sessionId to empty
You can’t perform that action at this time.
0 commit comments