feat: 统一 Commilitia Drop 全客户端命名与分发
This commit is contained in:
@@ -150,7 +150,7 @@ func bearerToken(r *http.Request) (string, bool) {
|
||||
|
||||
func unauthorized(w http.ResponseWriter, reason string) {
|
||||
w.Header().Set("Content-Type", "application/json; charset=utf-8")
|
||||
w.Header().Set("WWW-Authenticate", `Bearer realm="cdrop"`)
|
||||
w.Header().Set("WWW-Authenticate", `Bearer realm="Commilitia Drop"`)
|
||||
w.WriteHeader(http.StatusUnauthorized)
|
||||
_ = json.NewEncoder(w).Encode(map[string]string{
|
||||
"error": "unauthorized",
|
||||
|
||||
Reference in New Issue
Block a user