1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-02 20:28:38 -04:00

Remove 'gorilla' framework

It was being used for session management, but we weren't using any of
the features that differentiated it from using go's cookies directly so
it is hard to justify the additional dependencies.
This commit is contained in:
2017-10-03 11:24:07 -04:00
parent 22560dd43a
commit c783e2c1bb
2 changed files with 37 additions and 24 deletions

View File

@ -4,7 +4,6 @@ package main
import (
"flag"
"github.com/gorilla/context"
"log"
"net"
"net/http"
@ -76,8 +75,8 @@ func main() {
log.Printf("Serving on port %d out of directory: %s", config.MoneyGo.Port, config.MoneyGo.Basedir)
if config.MoneyGo.Fcgi {
fcgi.Serve(listener, context.ClearHandler(servemux))
fcgi.Serve(listener, servemux)
} else {
http.Serve(listener, context.ClearHandler(servemux))
http.Serve(listener, servemux)
}
}