fix
This commit is contained in:
		
							parent
							
								
									7280c38b16
								
							
						
					
					
						commit
						06e4f1f96e
					
				@ -9,7 +9,6 @@ import (
 | 
				
			|||||||
	"fusenapi/utils/auth"
 | 
						"fusenapi/utils/auth"
 | 
				
			||||||
	"github.com/google/uuid"
 | 
						"github.com/google/uuid"
 | 
				
			||||||
	"github.com/gorilla/websocket"
 | 
						"github.com/gorilla/websocket"
 | 
				
			||||||
	"github.com/zeromicro/go-zero/rest/httpx"
 | 
					 | 
				
			||||||
	"net/http"
 | 
						"net/http"
 | 
				
			||||||
	"sync"
 | 
						"sync"
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
@ -49,10 +48,6 @@ var (
 | 
				
			|||||||
		CheckOrigin: func(r *http.Request) bool {
 | 
							CheckOrigin: func(r *http.Request) bool {
 | 
				
			||||||
			return true
 | 
								return true
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		Error: func(w http.ResponseWriter, r *http.Request, status int, reason error) {
 | 
					 | 
				
			||||||
			httpx.ErrorCtx(r.Context(), w, reason)
 | 
					 | 
				
			||||||
			return
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
		WriteBufferPool: &buffPool,
 | 
							WriteBufferPool: &buffPool,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	//连接map池
 | 
						//连接map池
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user