askCredentials responses HTTP header and status which informs client to provide credentials.
(c *macaron.Context, status int, text string)
| 36 | |
| 37 | // askCredentials responses HTTP header and status which informs client to provide credentials. |
| 38 | func askCredentials(c *macaron.Context, status int, text string) { |
| 39 | c.Header().Set("WWW-Authenticate", "Basic realm=\".\"") |
| 40 | c.Error(status, text) |
| 41 | } |
| 42 | |
| 43 | // gitHTTPAction returns the Git HTTP path suffix after /:username/:reponame/. |
| 44 | func gitHTTPAction(c *macaron.Context) string { |
no test coverage detected