From 89f5f556f99a57990b9dd517e32c5ac0d51042e3 Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Thu, 6 Jun 2019 00:15:57 -0700 Subject: [PATCH] assign to map before flush --- wrp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrp.go b/wrp.go index 538d251..91f177d 100644 --- a/wrp.go +++ b/wrp.go @@ -251,9 +251,9 @@ func capture(gourl string, w int64, h int64, s float64, co int, p int64, i bool, } else { fmt.Fprintf(out, "\n") } + ismap[mappath] = is out.(http.Flusher).Flush() log.Printf("%s Done with caputure for %s\n", c, gourl) - ismap[mappath] = is } func main() {