Call vanity vanity again

This commit is contained in:
2026-09-13 11:11:16 +02:00
parent adf118385a
commit 9551b84d3c
6 changed files with 16 additions and 15 deletions
+2 -2
View File
@@ -196,7 +196,7 @@ func (s *Server) storeUpload(w http.ResponseWriter, r *http.Request, req uploadR
return
}
if req.vanity != "" && !lim.AllowVanity {
s.fail(w, r, http.StatusForbidden, "Custom names require a token.")
s.fail(w, r, http.StatusForbidden, "Vanity names require a token.")
return
}
expires, err := resolveExpiry(req.expiry, lim, now)
@@ -220,7 +220,7 @@ func (s *Server) storeUpload(w http.ResponseWriter, r *http.Request, req uploadR
return
case errors.Is(err, store.ErrBadID):
s.fail(w, r, http.StatusBadRequest,
"A custom name must be 2-64 characters of letters, digits, dot, dash or underscore.")
"A vanity name must be 2-64 characters of letters, digits, dot, dash or underscore.")
return
case err != nil:
s.log.Error("reserving object", "err", err)