Use request defined host in index template

This commit is contained in:
Fabien Bochu
2017-08-20 21:36:29 +02:00
committed by Martin Polden
parent 7145e0464f
commit 20f3685d06
2 changed files with 13 additions and 12 deletions

View File

@ -187,9 +187,10 @@ func (a *API) DefaultHandler(w http.ResponseWriter, r *http.Request) *appError {
return internalServerError(err)
}
var data = struct {
Host string
Response
Oracle
}{response, a.oracle}
}{r.Host, response, a.oracle}
if err := t.Execute(w, &data); err != nil {
return internalServerError(err)
}