|
|
|
@ -287,7 +287,7 @@ A more complex authentication middleware, which maps session token to users, cou |
|
|
|
log.Printf("Authenticated user %s\n", user) |
|
|
|
log.Printf("Authenticated user %s\n", user) |
|
|
|
next.ServeHTTP(w, r) |
|
|
|
next.ServeHTTP(w, r) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
http.Error(w, "Forbidden", 403) |
|
|
|
http.Error(w, "Forbidden", http.StatusForbidden) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|