mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 03:02:25 -05:00 
			
		
		
		
	[chore]: Bump github.com/gorilla/websocket from 1.5.0 to 1.5.1 (#2335)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: kim <grufwub@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								33ee61575f
							
						
					
				
			
			
				commit
				
					
						2eb8b8eeb4
					
				
			
		
					 29 changed files with 1203 additions and 632 deletions
				
			
		
							
								
								
									
										9
									
								
								vendor/github.com/gorilla/websocket/compression.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								vendor/github.com/gorilla/websocket/compression.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -8,6 +8,7 @@ import ( | |||
| 	"compress/flate" | ||||
| 	"errors" | ||||
| 	"io" | ||||
| 	"log" | ||||
| 	"strings" | ||||
| 	"sync" | ||||
| ) | ||||
|  | @ -33,7 +34,9 @@ func decompressNoContextTakeover(r io.Reader) io.ReadCloser { | |||
| 		"\x01\x00\x00\xff\xff" | ||||
| 
 | ||||
| 	fr, _ := flateReaderPool.Get().(io.ReadCloser) | ||||
| 	fr.(flate.Resetter).Reset(io.MultiReader(r, strings.NewReader(tail)), nil) | ||||
| 	if err := fr.(flate.Resetter).Reset(io.MultiReader(r, strings.NewReader(tail)), nil); err != nil { | ||||
| 		panic(err) | ||||
| 	} | ||||
| 	return &flateReadWrapper{fr} | ||||
| } | ||||
| 
 | ||||
|  | @ -132,7 +135,9 @@ func (r *flateReadWrapper) Read(p []byte) (int, error) { | |||
| 		// Preemptively place the reader back in the pool. This helps with | ||||
| 		// scenarios where the application does not call NextReader() soon after | ||||
| 		// this final read. | ||||
| 		r.Close() | ||||
| 		if err := r.Close(); err != nil { | ||||
| 			log.Printf("websocket: flateReadWrapper.Close() returned error: %v", err) | ||||
| 		} | ||||
| 	} | ||||
| 	return n, err | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue