Fix listing icons and more

Former-commit-id: 9406455a67d31ba221f4d770c27e6b019531317a [formerly 8b09c630bb53a1402aeceb5a6aa925c30935a796] [formerly 12b8050b5f3950fbd08238b431fa2f80c7a7cf6b [formerly 338e73a8b208b8bcb09568e1b309809c4c6f45fe]]
Former-commit-id: 5e065778adf3521aea2da98d4dd2054cf29f28bd [formerly c00e9fec37dd8004bb6f5cdbb41adf4f6a460e7a]
Former-commit-id: 532f25d150440d2eb1254fc0d77270f8144e0e0c
This commit is contained in:
Henrique Dias
2017-07-08 12:46:19 +01:00
parent 4fd33de5ad
commit a9e41695aa
3 changed files with 31 additions and 22 deletions

2
api.go
View File

@@ -133,7 +133,7 @@ func getHandler(c *requestContext, w http.ResponseWriter, r *http.Request) (int,
}
// Tries to get the file type.
if err = f.RetrieveFileType(); err != nil {
if err = f.RetrieveFileType(true); err != nil {
return errorToHTTP(err, true), err
}