Skip to content

Commit

Permalink
fixed the autoredirect
Browse files Browse the repository at this point in the history
  • Loading branch information
alash3al committed Feb 24, 2018
1 parent b270149 commit 5aea60d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ func InitServer() error {
log.SetOutput(ioutil.Discard)

go (func() {
handler := m.HTTPHandler(nil)
handler := m.HTTPHandler(ServeHTTP())
if *AUTOREDIRECT {
handler = m.HTTPHandler(ServeHTTP())
handler = m.HTTPHandler(nil)
}
errchan <- http.ListenAndServe(*HTTP_ADDR, handler)
})()
Expand Down

0 comments on commit 5aea60d

Please sign in to comment.