remove raw option

pull/144/head
Henrique Dias 2017-06-26 17:38:04 +01:00
parent 092eac0575
commit e3ce7a7e0a
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 0 additions and 3 deletions

View File

@ -93,9 +93,6 @@ func (m *FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, er
switch { switch {
case r.URL.Query().Get("download") != "": case r.URL.Query().Get("download") != "":
code, err = download(w, r, f) code, err = download(w, r, f)
case r.URL.Query().Get("raw") == "true" && !f.IsDir:
http.ServeFile(w, r, f.Path)
code, err = 0, nil
case !f.IsDir && r.URL.Query().Get("checksum") != "": case !f.IsDir && r.URL.Query().Get("checksum") != "":
code, err = checksum(w, r, f) code, err = checksum(w, r, f)
case f.IsDir: case f.IsDir: