Sort working

Former-commit-id: 82fb8c7c1e2fe754e7da9a26a800a7814e562033 [formerly 4bca5432790eef9a06bda1a3779b060c0ee8717c] [formerly 2dd333885a261827f95692a8d68dfdf81f81a303 [formerly ce6557997a]]
Former-commit-id: cfbf8f1a49e5cde20ec71edd1d61389bd1f820c6 [formerly 94762c33a82b2b1a8fbd1c1969dc8d0f4dfce1d5]
Former-commit-id: 623a70bda4ea4b7a821ca756234addcb97dfb1c3
This commit is contained in:
Henrique Dias
2017-07-03 18:49:08 +01:00
parent 869cd562e7
commit c3b882aee5
3 changed files with 47 additions and 24 deletions

2
api.go
View File

@@ -268,7 +268,7 @@ func handleSortOrder(w http.ResponseWriter, r *http.Request, scope string) (sort
if sortCookie, sortErr := r.Cookie("sort"); sortErr == nil {
sort = sortCookie.Value
}
case "name", "size", "type":
case "name", "size":
http.SetCookie(w, &http.Cookie{
Name: "sort",
Value: sort,