瀏覽代碼

FIX MISSING TEMPLATE DATA

tags/v1.0.0
Andrea Spacca 5 年之前
父節點
當前提交
64344fcf4d
共有 1 個檔案被更改,包括 5 行新增3 行删除
  1. +5
    -3
      server/handlers.go

+ 5
- 3
server/handlers.go 查看文件

@@ -204,13 +204,15 @@ func (s *Server) viewHandler(w http.ResponseWriter, r *http.Request) {
webAddress := resolveWebAddress(r)

data := struct {
Hostname string
WebAddress string
GAKey string
Hostname string
WebAddress string
GAKey string
UserVoiceKey string
}{
hostname,
webAddress,
s.gaKey,
s.userVoiceKey,
}

if acceptsHTML(r.Header) {


Loading…
取消
儲存