From 1c2450a2ae047fce5dcc46e3f99f17fb0bef6d65 Mon Sep 17 00:00:00 2001 From: Evan Lin Date: Mon, 11 Nov 2019 16:56:15 +1300 Subject: [PATCH] Fix wrong use of middleware context in hypervisor. --- pkg/hypervisor/hypervisor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hypervisor/hypervisor.go b/pkg/hypervisor/hypervisor.go index ad35ade42..b7b264c54 100644 --- a/pkg/hypervisor/hypervisor.go +++ b/pkg/hypervisor/hypervisor.go @@ -650,7 +650,7 @@ func (m *Node) appCtx(w http.ResponseWriter, r *http.Request) (*httpCtx, bool) { } func (m *Node) tpCtx(w http.ResponseWriter, r *http.Request) (*httpCtx, bool) { - ctx, ok := m.appCtx(w, r) + ctx, ok := m.nodeCtx(w, r) if !ok { return nil, false }