Browse Source
			
			
			gzip: Use klauspost/gzip, an optimized gzip implementation
			
			
				master
			
			
		 
		
			
				
					
						 Matthew Holt
					
					6 years ago
						Matthew Holt
					
					6 years ago
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 2A349DD577D586A5
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
1 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					modules/caddyhttp/encode/gzip/gzip.go
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -16,13 +16,13 @@ package caddygzip | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | import ( |  |  | import ( | 
			
		
	
		
		
			
				
					|  |  | 	"compress/flate" |  |  | 	"compress/flate" | 
			
		
	
		
		
			
				
					|  |  | 	"compress/gzip" // TODO: consider using https://github.com/klauspost/compress/gzip
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	"fmt" |  |  | 	"fmt" | 
			
		
	
		
		
			
				
					|  |  | 	"strconv" |  |  | 	"strconv" | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 	"github.com/caddyserver/caddy/v2" |  |  | 	"github.com/caddyserver/caddy/v2" | 
			
		
	
		
		
			
				
					|  |  | 	"github.com/caddyserver/caddy/v2/caddyconfig/caddyfile" |  |  | 	"github.com/caddyserver/caddy/v2/caddyconfig/caddyfile" | 
			
		
	
		
		
			
				
					|  |  | 	"github.com/caddyserver/caddy/v2/modules/caddyhttp/encode" |  |  | 	"github.com/caddyserver/caddy/v2/modules/caddyhttp/encode" | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 	"github.com/klauspost/compress/gzip" | 
			
		
	
		
		
			
				
					|  |  | ) |  |  | ) | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | func init() { |  |  | func init() { | 
			
		
	
	
		
		
			
				
					|  | 
 |