spelling: optional
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
0746ec8567
commit
02fb079a9f
|
@ -262,7 +262,7 @@ func apiAuth(app *App, r *http.Request) (*User, error) {
|
||||||
return u, nil
|
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
|
// Authorization header or cookie, unlike apiAuth. It returns a different err
|
||||||
// in the case where no Authorization header is present.
|
// in the case where no Authorization header is present.
|
||||||
func optionalAPIAuth(app *App, r *http.Request) (*User, error) {
|
func optionalAPIAuth(app *App, r *http.Request) (*User, error) {
|
||||||
|
|
Loading…
Reference in New Issue