mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
propagate a ctx all the way from input to output of a route
This commit is contained in:
@@ -77,7 +77,7 @@ func (hs *HTTPServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
if hs.router != nil {
|
||||
aRouteFound, routingErrors := hs.router.HandleInput(hs.Id(), r)
|
||||
aRouteFound, routingErrors := hs.router.HandleInput(hs.ctx, hs.Id(), r)
|
||||
if aRouteFound {
|
||||
if routingErrors != nil {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
|
||||
Reference in New Issue
Block a user