Skip to content

Commit 5aea60d

Browse files
committed
fixed the autoredirect
1 parent b270149 commit 5aea60d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ func InitServer() error {
4242
log.SetOutput(ioutil.Discard)
4343

4444
go (func() {
45-
handler := m.HTTPHandler(nil)
45+
handler := m.HTTPHandler(ServeHTTP())
4646
if *AUTOREDIRECT {
47-
handler = m.HTTPHandler(ServeHTTP())
47+
handler = m.HTTPHandler(nil)
4848
}
4949
errchan <- http.ListenAndServe(*HTTP_ADDR, handler)
5050
})()

0 commit comments

Comments
 (0)