Skip to content

Commit

Permalink
make it go1.14 buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
mlusetti committed Apr 14, 2022
1 parent 5978717 commit 408aa04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package restserver

import (
"errors"
"io/fs"
"log"
"net/http"
"os"
"path"
"path/filepath"
"strings"
Expand Down Expand Up @@ -93,8 +93,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
QuotaManager: s.quotaManager, // may be nil
PanicOnError: s.PanicOnError,
NoVerifyUpload: s.NoVerifyUpload,
DirMode: fs.FileMode(s.DirMode),
FileMode: fs.FileMode(s.FileMode),
DirMode: os.FileMode(s.DirMode),
FileMode: os.FileMode(s.FileMode),
}
if s.Prometheus {
opt.BlobMetricFunc = makeBlobMetricFunc(username, folderPath)
Expand Down

0 comments on commit 408aa04

Please sign in to comment.