mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
wip
This commit is contained in:
parent
26490d8950
commit
0fa647053b
3 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,6 @@ type ResponseParams struct {
|
|||
Msg string
|
||||
Code int
|
||||
Timestamp string
|
||||
template *template.Template
|
||||
Template *template.Template
|
||||
Details template.HTML
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue