and check the right parameter while yo'ure at it

This commit is contained in:
Your Name 2018-09-02 21:20:58 +00:00
parent c28ea0e348
commit c4fe2bf08b
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ func dirList(w http.ResponseWriter, r *http.Request, f http.File) {
key = k[0]
}
order := ""
o, ok := r.URL.Query()["key"]
o, ok := r.URL.Query()["order"]
if !ok || (o[0] != "asc" && o[0] != "desc") {
order = "asc"
} else {