mirror of
				https://github.com/imgproxy/imgproxy.git
				synced 2025-10-30 23:08:02 +02:00 
			
		
		
		
	Fix Vary header when JPEG XL supoprt detection is enabled
This commit is contained in:
		| @@ -2,6 +2,7 @@ | ||||
|  | ||||
| ## [Unreleased] | ||||
| ### Fixed | ||||
| - Fix the `Vary` header value when `IMGPROXY_AUTO_JXL` or `IMGPROXY_ENFORCE_JXL` configs are set to `true`. | ||||
| - (pro) Fix generating thumbnails for VP9 videos with high bit depth. | ||||
| - (pro) Fix `IMGPROXY_CUSTOM_RESPONSE_HEADERS` and `IMGPROXY_RESPONSE_HEADERS_PASSTHROUGH` configs behavior when the `raw` processing option is used. | ||||
|  | ||||
|   | ||||
| @@ -48,7 +48,12 @@ func initProcessingHandler() { | ||||
|  | ||||
| 	vary := make([]string, 0) | ||||
|  | ||||
| 	if config.AutoWebp || config.EnforceWebp || config.AutoAvif || config.EnforceAvif { | ||||
| 	if config.AutoWebp || | ||||
| 		config.EnforceWebp || | ||||
| 		config.AutoAvif || | ||||
| 		config.EnforceAvif || | ||||
| 		config.AutoJxl || | ||||
| 		config.EnforceJxl { | ||||
| 		vary = append(vary, "Accept") | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user