Don't close chan
This commit is contained in:
parent
dbe9f99f4f
commit
a02ab4dec7
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ func scanHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
s := <-response
|
s := <-response
|
||||||
defer close(response)
|
//defer close(response)
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "application/json; charset=utf-8")
|
w.Header().Set("Content-Type", "application/json; charset=utf-8")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue