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") {
w.Header().Set("Content-Type", "text/html")
err := views.HtmlListTemplate.Execute(w, &views.HtmlListData{
URI: &api.Uri{
URI: &api.URI{
Scheme: "bzz",
Addr: r.Uri.Addr,
Path: r.Uri.Path,

View file

@ -49,7 +49,7 @@ func (controller *Controller) Respond(w http.ResponseWriter, req *messages.Reque
Msg: msg,
Details: template.HTML(additionalMessage),
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
Code int
Timestamp string
template *template.Template
Template *template.Template
Details template.HTML
}