Skip to content

Commit

Permalink
Merge pull request #331 from wsczx/dev
Browse files Browse the repository at this point in the history
修复更换自定义首页状态码不生效的Bug
  • Loading branch information
bjdgyc authored Aug 27, 2024
2 parents a548777 + cbdf730 commit 52329e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/handler/link_home.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ func LinkHome(w http.ResponseWriter, r *http.Request) {
return
}

if index.Homecode > 0 {
if index.Homecode != http.StatusOK {
w.WriteHeader(index.Homecode)
} else {
w.WriteHeader(http.StatusOK)
return
}
w.WriteHeader(http.StatusOK)

// if index.Homeindex == "" {
// index.Homeindex = "AnyLink 是一个企业级远程办公 SSL VPN 软件,可以支持多人同时在线使用。"
Expand Down

0 comments on commit 52329e8

Please sign in to comment.