()
| 134 | } |
| 135 | |
| 136 | func (cs *callbackServer) close() { |
| 137 | shutdownCtx, cancel := context.WithTimeout(context.Background(), 2*time.Second) |
| 138 | defer cancel() |
| 139 | _ = cs.server.Shutdown(shutdownCtx) |
| 140 | _ = cs.listener.Close() |
| 141 | } |
| 142 | |
| 143 | func renderSuccess(w http.ResponseWriter) { |
| 144 | w.Header().Set("Content-Type", "text/html; charset=utf-8") |