This commit is contained in:
justelad 2018-06-28 13:29:04 +02:00
parent 26490d8950
commit 0fa647053b
3 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ func (controller *BzzListController) Get(w http.ResponseWriter, r *messages.Requ
if strings.Contains(r.Header.Get("Accept"), "text/html") { if strings.Contains(r.Header.Get("Accept"), "text/html") {
w.Header().Set("Content-Type", "text/html") w.Header().Set("Content-Type", "text/html")
err := views.HtmlListTemplate.Execute(w, &views.HtmlListData{ err := views.HtmlListTemplate.Execute(w, &views.HtmlListData{
URI: &api.Uri{ URI: &api.URI{
Scheme: "bzz", Scheme: "bzz",
Addr: r.Uri.Addr, Addr: r.Uri.Addr,
Path: r.Uri.Path, Path: r.Uri.Path,

View file

@ -49,7 +49,7 @@ func (controller *Controller) Respond(w http.ResponseWriter, req *messages.Reque
Msg: msg, Msg: msg,
Details: template.HTML(additionalMessage), Details: template.HTML(additionalMessage),
Timestamp: time.Now().Format(time.RFC1123), Timestamp: time.Now().Format(time.RFC1123),
template: views.GetTemplate(code), Template: views.GetTemplate(code),
}) })
} }

View file

@ -22,6 +22,6 @@ type ResponseParams struct {
Msg string Msg string
Code int Code int
Timestamp string Timestamp string
template *template.Template Template *template.Template
Details template.HTML Details template.HTML
} }