Method
handleAuthToken
(w http.ResponseWriter, r *http.Request)
Source from the content-addressed store, hash-verified
| 234 | } |
| 235 | |
| 236 | func (server *Server) handleAuthToken(w http.ResponseWriter, r *http.Request) { |
| 237 | w.Header().Set("Content-Type", "application/javascript") |
| 238 | // @TODO hashing? |
| 239 | w.Write([]byte("var gotty_auth_token = '" + server.options.Credential + "';")) |
| 240 | } |
| 241 | |
| 242 | func (server *Server) handleConfig(w http.ResponseWriter, r *http.Request) { |
| 243 | w.Header().Set("Content-Type", "application/javascript") |
Callers
nothing calls this directly
Tested by
no test coverage detected