Parcourir la source

spelling: optional

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
pull/658/head
Josh Soref il y a 1 an
Parent
révision
02fb079a9f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      handle.go

+ 1
- 1
handle.go Voir le fichier

@@ -262,7 +262,7 @@ func apiAuth(app *App, r *http.Request) (*User, error) {
return u, nil
}

// optionaAPIAuth is used for endpoints that accept authenticated requests via
// optionalAPIAuth is used for endpoints that accept authenticated requests via
// Authorization header or cookie, unlike apiAuth. It returns a different err
// in the case where no Authorization header is present.
func optionalAPIAuth(app *App, r *http.Request) (*User, error) {


Chargement…
Annuler
Enregistrer