Remove a bunch of unused cruft
This commit is contained in:
@@ -4,8 +4,8 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -99,7 +99,7 @@ func (s *Server) CacheHandler() httprouter.Handle {
|
||||
|
||||
var entry Entry
|
||||
|
||||
data, err := ioutil.ReadFile(fn)
|
||||
data, err := os.ReadFile(fn)
|
||||
if err != nil {
|
||||
log.WithError(err).Error("error reading cached entry")
|
||||
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
|
||||
|
||||
Reference in New Issue
Block a user