Ver código fonte

FIX MISSING TEMPLATE DATA

tags/v1.0.0
Andrea Spacca 5 anos atrás
pai
commit
64344fcf4d
1 arquivos alterados com 5 adições e 3 exclusões
  1. +5
    -3
      server/handlers.go

+ 5
- 3
server/handlers.go Ver arquivo

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


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


if acceptsHTML(r.Header) { if acceptsHTML(r.Header) {


Carregando…
Cancelar
Salvar