Update "type auth.Challenge" comment example code
This interface was changed in 4a2300aaa9
, but the comment wasn't ever updated to match.
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
parent
8806306f3d
commit
8263cdeb57
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@
|
|||
// if ctx, err := accessController.Authorized(ctx, access); err != nil {
|
||||
// if challenge, ok := err.(auth.Challenge) {
|
||||
// // Let the challenge write the response.
|
||||
// challenge.ServeHTTP(w, r)
|
||||
// challenge.SetHeaders(w)
|
||||
// w.WriteHeader(http.StatusUnauthorized)
|
||||
// return
|
||||
// } else {
|
||||
// // Some other error.
|
||||
// }
|
||||
|
|
Loading…
Reference in a new issue