(code int)
| 144 | } |
| 145 | |
| 146 | func (rw *responseWriter) WriteHeader(code int) { |
| 147 | rw.statusCode = code |
| 148 | rw.ResponseWriter.WriteHeader(code) |
| 149 | } |
| 150 | |
| 151 | // Start initializes and starts the API server. It refuses to start without a |
| 152 | // token, since an open download proxy is a security risk. |