Close response chan
This commit is contained in:
parent
ab2625110c
commit
781ea97666
1 changed files with 1 additions and 0 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue