mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 10:32:25 -05:00 
			
		
		
		
	[chore] Update all but bun libraries (#526)
* update all but bun libraries Signed-off-by: kim <grufwub@gmail.com> * remove my personal build script changes Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								e06bf9cc9a
							
						
					
				
			
			
				commit
				
					
						b56dae8120
					
				
			
		
					 350 changed files with 305366 additions and 5943 deletions
				
			
		
							
								
								
									
										8
									
								
								vendor/github.com/gorilla/websocket/server.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/gorilla/websocket/server.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -23,6 +23,8 @@ func (e HandshakeError) Error() string { return e.message } | |||
| 
 | ||||
| // Upgrader specifies parameters for upgrading an HTTP connection to a | ||||
| // WebSocket connection. | ||||
| // | ||||
| // It is safe to call Upgrader's methods concurrently. | ||||
| type Upgrader struct { | ||||
| 	// HandshakeTimeout specifies the duration for the handshake to complete. | ||||
| 	HandshakeTimeout time.Duration | ||||
|  | @ -115,8 +117,8 @@ func (u *Upgrader) selectSubprotocol(r *http.Request, responseHeader http.Header | |||
| // Upgrade upgrades the HTTP server connection to the WebSocket protocol. | ||||
| // | ||||
| // The responseHeader is included in the response to the client's upgrade | ||||
| // request. Use the responseHeader to specify cookies (Set-Cookie) and the | ||||
| // application negotiated subprotocol (Sec-WebSocket-Protocol). | ||||
| // request. Use the responseHeader to specify cookies (Set-Cookie). To specify | ||||
| // subprotocols supported by the server, set Upgrader.Subprotocols directly. | ||||
| // | ||||
| // If the upgrade fails, then Upgrade replies to the client with an HTTP error | ||||
| // response. | ||||
|  | @ -131,7 +133,7 @@ func (u *Upgrader) Upgrade(w http.ResponseWriter, r *http.Request, responseHeade | |||
| 		return u.returnError(w, r, http.StatusBadRequest, badHandshake+"'websocket' token not found in 'Upgrade' header") | ||||
| 	} | ||||
| 
 | ||||
| 	if r.Method != "GET" { | ||||
| 	if r.Method != http.MethodGet { | ||||
| 		return u.returnError(w, r, http.StatusMethodNotAllowed, badHandshake+"request method is not GET") | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue