diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-03-01 13:28:30 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-03-01 13:28:30 +0300 |
commit | da03df956f659db8121991b330af26929a69cd2e (patch) | |
tree | 216eb3d5e41a4aa12d58cf4ef7d22dae03e99f98 /internal/domain | |
parent | 77a49c65a81a74a0ce78805900ee4fb6b3a17b34 (diff) |
Open `.zip` archive
Diffstat (limited to 'internal/domain')
-rw-r--r-- | internal/domain/domain.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go index 72b2bc8b..6f09eaf0 100644 --- a/internal/domain/domain.go +++ b/internal/domain/domain.go @@ -361,14 +361,14 @@ func (d *D) ServeFileHTTP(w http.ResponseWriter, r *http.Request) bool { return true } - stor, err := storage.New(project) + store, err := storage.New(project) if err != nil { httperrors.Serve500(w) - return + return true } defer store.Close() - if d.tryFile(w, r, stor, subPath) == nil { + if d.tryFile(w, r, store, subPath) == nil { return true } @@ -388,7 +388,7 @@ func (d *D) ServeNotFoundHTTP(w http.ResponseWriter, r *http.Request) { return } - stor, err := storage.New(project) + store, err := storage.New(project) if err != nil { httperrors.Serve500(w) return @@ -396,7 +396,7 @@ func (d *D) ServeNotFoundHTTP(w http.ResponseWriter, r *http.Request) { defer store.Close() // Try serving custom not-found page - if d.tryNotFound(w, r, stor) == nil { + if d.tryNotFound(w, r, store) == nil { return } |