Pārlūkot izejas kodu

FIX MISSING TEMPLATE DATA

tags/v1.0.0
Andrea Spacca pirms 5 gadiem
vecāks
revīzija
64344fcf4d
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. +5
    -3
      server/handlers.go

+ 5
- 3
server/handlers.go Parādīt failu

@@ -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) {


Notiek ielāde…
Atcelt
Saglabāt