Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'workhorse/internal/staticpages/deploy_page.go')
-rw-r--r--workhorse/internal/staticpages/deploy_page.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/workhorse/internal/staticpages/deploy_page.go b/workhorse/internal/staticpages/deploy_page.go
index 35ebafa66e1..3dc2d982981 100644
--- a/workhorse/internal/staticpages/deploy_page.go
+++ b/workhorse/internal/staticpages/deploy_page.go
@@ -1,8 +1,8 @@
package staticpages
import (
- "io/ioutil"
"net/http"
+ "os"
"path/filepath"
"gitlab.com/gitlab-org/gitlab/workhorse/internal/helper"
@@ -12,7 +12,7 @@ func (s *Static) DeployPage(handler http.Handler) http.Handler {
deployPage := filepath.Join(s.DocumentRoot, "index.html")
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
- data, err := ioutil.ReadFile(deployPage)
+ data, err := os.ReadFile(deployPage)
if err != nil {
handler.ServeHTTP(w, r)
return