Mercurial > gemma
diff pkg/misc/http.go @ 5710:37c8feeecb4d
Merged branch sr-v2 into default.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 20 Feb 2024 21:28:56 +0100 |
parents | 31973f6f5cca |
children |
line wrap: on
line diff
--- a/pkg/misc/http.go Wed Feb 14 16:56:28 2024 +0100 +++ b/pkg/misc/http.go Tue Feb 20 21:28:56 2024 +0100 @@ -17,7 +17,6 @@ "bufio" "fmt" "io" - "io/ioutil" "net/http" "os" "path/filepath" @@ -54,7 +53,7 @@ } defer f.Close() - dir, err := ioutil.TempDir(config.TmpDir(), field) + dir, err := os.MkdirTemp(config.TmpDir(), field) if err != nil { return "", err }