Skip to content

Commit e5a3c2a

Browse files
new commit
1 parent cfaed8c commit e5a3c2a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

offline-first-example

xdcc/xdcc.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ import (
2424
"strconv"
2525
"strings"
2626
"sync"
27+
"text/template"
2728
"unicode/utf8"
28-
"text/template"
29+
2930
"github.com/kiwiirc/webircgateway/pkg/irc"
3031
"github.com/kiwiirc/webircgateway/pkg/webircgateway"
3132
"golang.org/x/net/html/charset"
@@ -400,14 +401,13 @@ func (s *Server) InitDispatch() {
400401

401402
parts := s.fileNames[name]
402403
myName := fmt.Sprintf("http://%s:3000/%s", configs.DomainName, parts.file)
403-
404404
err := temp.ExecuteTemplate(w, "indexPage", myName)
405405
if err != nil {
406406
http.Error(w, err.Error(), http.StatusInternalServerError)
407407
return
408408
}
409409

410-
}).Methods("GET")
410+
}).Methods("GET")
411411
d.HandleFunc("/{name}", func(w http.ResponseWriter, r *http.Request) {
412412
//Lookup handler in map and call it, proxying this writer and request
413413
vars := mux.Vars(r)

0 commit comments

Comments
 (0)