diff --git a/clamrest.go b/clamrest.go index 7949e1f..9b04de8 100644 --- a/clamrest.go +++ b/clamrest.go @@ -120,6 +120,7 @@ func scanHandler(w http.ResponseWriter, r *http.Request) { } s := <-response + defer close(response) w.Header().Set("Content-Type", "application/json; charset=utf-8")