assign to map before flush

This commit is contained in:
Antoni Sawicki 2019-06-06 00:15:57 -07:00
parent af3aef5c39
commit 89f5f556f9
1 changed files with 1 additions and 1 deletions

2
wrp.go
View File

@ -251,9 +251,9 @@ func capture(gourl string, w int64, h int64, s float64, co int, p int64, i bool,
} else {
fmt.Fprintf(out, "</MAP>\n")
}
ismap[mappath] = is
out.(http.Flusher).Flush()
log.Printf("%s Done with caputure for %s\n", c, gourl)
ismap[mappath] = is
}
func main() {