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