1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-03 10:43:58 +02:00

Minor fix

This commit is contained in:
DarthSim 2018-11-02 22:39:38 +06:00
parent a1a74450d1
commit e1f3f4278b

View File

@ -811,10 +811,12 @@ func parsePath(ctx context.Context, r *http.Request) (context.Context, error) {
return ctx, err return ctx, err
} }
} }
headers := &processingHeaders{}
headers.Accept = r.Header.Get("Accept") headers := &processingHeaders{
headers.Width = r.Header.Get("Width") Accept: r.Header.Get("Accept"),
headers.ViewportWidth = r.Header.Get("Viewport-Width") Width: r.Header.Get("Width"),
ViewportWidth: r.Header.Get("Viewport-Width"),
}
var imageURL string var imageURL string
var po *processingOptions var po *processingOptions