diff --git a/.gitignore b/.gitignore index 3733e36..2736063 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,4 @@ glide.lock .DS_Store dist/ debug +.Gopkg.lock diff --git a/servlet/auth-servlet.go b/servlet/auth-servlet.go index ef50a4e..4880f30 100644 --- a/servlet/auth-servlet.go +++ b/servlet/auth-servlet.go @@ -127,7 +127,7 @@ func (s *AuthServlets) Handshake(servletCtx server.ServletCtx, ctx *fasthttp.Req extHeader := &fasthttp.ResponseHeader{} - noAuthProbeStatusType := ocmm.ToNoAuthProbeStatusType(nap.Status.Name) + noAuthProbeStatusType := ocmm.ToNoAuthProbeStatusType(nap.MetaNoAuthProbeStatus.Name) switch noAuthProbeStatusType { case ocmm.NoAuthProbeStatusTypeACCEPT: extHeader.Add(occn.HTTPResponseHeaderKey_NoAuthProbe_Method, occn.HTTPResponseHeaderValue_NoAuthProbe_Method_Accept)