VividCortex / siesta

Composable framework for writing HTTP handlers in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

toContextHandler needs to panic

Preetam opened this issue · comments

switch f.(type) {

There are a couple of places where siesta panics because toContextHandler() doesn't return a valid function. The panicking logic should be in toContextHandler().