diff options
Diffstat (limited to 'forged/internal/incoming/web/router.go')
-rw-r--r-- | forged/internal/incoming/web/router.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/forged/internal/incoming/web/router.go b/forged/internal/incoming/web/router.go index c1a0bc0..07e19a5 100644 --- a/forged/internal/incoming/web/router.go +++ b/forged/internal/incoming/web/router.go @@ -152,6 +152,8 @@ func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { Queries: r.queries, } + req = req.WithContext(wtypes.WithBaseData(req.Context(), bd)) + bd.RefType, bd.RefName, err = GetParamRefTypeName(req) if err != nil { r.err400(w, bd, "Error parsing ref query parameters: "+err.Error()) @@ -202,7 +204,7 @@ func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { } // Attach BaseData to request context. - req = req.WithContext(wtypes.WithBaseData(req.Context(), bd)) + // req = req.WithContext(wtypes.WithBaseData(req.Context(), bd)) // Enforce method now. if rt.method != "" && |