From e1f3f4278b8dff8e84e56cdf76ed912c5cdaeec9 Mon Sep 17 00:00:00 2001 From: DarthSim Date: Fri, 2 Nov 2018 22:39:38 +0600 Subject: [PATCH] Minor fix --- processing_options.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/processing_options.go b/processing_options.go index db3486e1..2d22aeb1 100644 --- a/processing_options.go +++ b/processing_options.go @@ -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