mirror of
https://github.com/elyby/chrly.git
synced 2025-05-31 14:11:51 +05:30
Добавлены обработчики для Legacy запросов
This commit is contained in:
@@ -22,3 +22,14 @@ func Skin(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
http.Redirect(w, r, rec.Url, 301);
|
||||
}
|
||||
|
||||
func SkinGET(w http.ResponseWriter, r *http.Request) {
|
||||
username := r.URL.Query().Get("name")
|
||||
if username == "" {
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
mux.Vars(r)["username"] = username
|
||||
Skin(w, r)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user