Small error correction
This commit is contained in:
parent
472f00a107
commit
0c87d91df1
@ -13,7 +13,9 @@ import (
|
||||
func tokenIsVerified(w http.ResponseWriter, r *http.Request) bool {
|
||||
idToken := r.Header.Get("Authorization")
|
||||
if idToken == "" {
|
||||
log.Println("Authorization header missing")
|
||||
http.Error(w, "Authorization header missing", http.StatusUnauthorized)
|
||||
return false
|
||||
}
|
||||
|
||||
client, err := b.NewClient()
|
||||
|
Loading…
x
Reference in New Issue
Block a user