diff --git a/.travis.yml b/.travis.yml index d57b9dc711..783a20b7bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,7 @@ jobs: env: - lint script: + - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./build/bin v1.30.0 - go run build/ci.go lint # These are the latest Go versions. diff --git a/api/http/server.go b/api/http/server.go index 8bd9aa2676..ff3b66ce1f 100644 --- a/api/http/server.go +++ b/api/http/server.go @@ -914,8 +914,6 @@ func (s *Server) HandleGetFile(w http.ResponseWriter, r *http.Request) { respondError(w, r, fmt.Sprintf("cannot resolve %s: %s", uri.Addr, err), http.StatusNotFound) return } - } else { - w.Header().Set("Cache-Control", "max-age=2147483648, immutable") // url was of type bzz:///path, so we are sure it is immutable. } log.Debug("handle.get.file: resolved", "ruid", ruid, "key", manifestAddr) diff --git a/build/ci.go b/build/ci.go index ce022befc1..be8278e113 100644 --- a/build/ci.go +++ b/build/ci.go @@ -260,10 +260,6 @@ func doLint(cmdline []string) { if len(flag.CommandLine.Args()) > 0 { packages = flag.CommandLine.Args() } - // Get metalinter and install all supported linters - lintcmd := goTool("get", "github.com/golangci/golangci-lint/cmd/golangci-lint") - lintcmd.Env = append(lintcmd.Env, "GO111MODULE=off") // do not interfere with project modules - build.MustRun(lintcmd) // Run fast linters batched together configs := []string{