(w http.ResponseWriter, r *http.Request, prompt string)
| 107 | } |
| 108 | |
| 109 | func redirectBack(w http.ResponseWriter, r *http.Request, prompt string) { |
| 110 | values := make(url.Values) |
| 111 | values.Set("prompt", url.QueryEscape(prompt)) |
| 112 | |
| 113 | url := url.URL{ |
| 114 | Path: "/device", |
| 115 | RawQuery: values.Encode(), |
| 116 | } |
| 117 | http.Redirect(w, r, url.String(), http.StatusSeeOther) |
| 118 | } |
| 119 | |
| 120 | const userCodeCookieName = "user_code" |
| 121 |
no test coverage detected
searching dependent graphs…