Rehabilitate all tets

This commit is contained in:
lash
2025-01-05 09:54:19 +00:00
parent f0a4a0df61
commit 437f73827d
3 changed files with 9 additions and 8 deletions

View File

@@ -21,7 +21,6 @@ import (
httpserver "git.grassecon.net/urdt/ussd/internal/http"
"git.grassecon.net/urdt/ussd/internal/storage"
"git.grassecon.net/urdt/ussd/remote"
"git.grassecon.net/urdt/ussd/request"
)
var (
@@ -124,7 +123,11 @@ func main() {
rp := &httpserver.DefaultRequestParser{}
bsh := handlers.NewBaseSessionHandler(cfg, rs, stateStore, userdataStore, rp, hl)
sh := request.ToSessionHandler(bsh)
// TODO: less hacky way of making session handler
//sh := request.ToSessionHandler(bsh)
sh := &httpserver.SessionHandler{
RequestHandler: bsh,
}
s := &http.Server{
Addr: fmt.Sprintf("%s:%s", host, strconv.Itoa(int(port))),
Handler: sh,