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
}
}
headers := &processingHeaders{}
headers.Accept = r.Header.Get("Accept")
headers.Width = r.Header.Get("Width")
headers.ViewportWidth = r.Header.Get("Viewport-Width")
headers := &processingHeaders{
Accept: r.Header.Get("Accept"),
Width: r.Header.Get("Width"),
ViewportWidth: r.Header.Get("Viewport-Width"),
}
var imageURL string
var po *processingOptions