Merge pull request #89 from unistack-org/reorder
reorder path checking, priority in internal routes
This commit is contained in:
commit
f80e6c1a66
4
http.go
4
http.go
@ -453,12 +453,12 @@ func (h *httpServer) Start() error {
|
||||
switch {
|
||||
case handler == nil && h.hd == nil:
|
||||
handler = h
|
||||
case len(h.handlers) > 0 && h.hd != nil:
|
||||
handler = h
|
||||
case handler == nil && h.hd != nil:
|
||||
if hdlr, ok := h.hd.Handler().(http.Handler); ok {
|
||||
handler = hdlr
|
||||
}
|
||||
case len(h.handlers) > 0 && h.hd != nil:
|
||||
handler = h
|
||||
}
|
||||
|
||||
if handler == nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user