1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-06-17 22:37:33 +02:00

Add support for client hints prefixed with Sec-CH-; Remove Viewport-Width header support

This commit is contained in:
DarthSim
2023-04-11 21:08:39 +03:00
parent a2efeb55be
commit b92de43cf3
5 changed files with 18 additions and 43 deletions

View File

@ -49,7 +49,7 @@ func initProcessingHandler() {
}
if config.EnableClientHints {
vary = append(vary, "DPR", "Viewport-Width", "Width")
vary = append(vary, "Sec-CH-DPR", "DPR", "Sec-CH-Width", "Width")
}
headerVaryValue = strings.Join(vary, ", ")