mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-30 08:00:19 +01:00
FIX MISSING TEMPLATE DATA
This commit is contained in:
parent
d2c8b85b15
commit
64344fcf4d
1 changed files with 5 additions and 3 deletions
|
@ -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
|
Hostname string
|
||||||
WebAddress string
|
WebAddress string
|
||||||
GAKey string
|
GAKey string
|
||||||
|
UserVoiceKey string
|
||||||
}{
|
}{
|
||||||
hostname,
|
hostname,
|
||||||
webAddress,
|
webAddress,
|
||||||
s.gaKey,
|
s.gaKey,
|
||||||
|
s.userVoiceKey,
|
||||||
}
|
}
|
||||||
|
|
||||||
if acceptsHTML(r.Header) {
|
if acceptsHTML(r.Header) {
|
||||||
|
|
Loading…
Reference in a new issue