Skip to content

Commit

Permalink
fix AX sending issue (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockspore authored Sep 9, 2021
1 parent e032d0f commit a9bbd5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (a *AuthorizationServer) createDenyResponse(req *envoy_auth.CheckRequest, t
RequestPath: requestPath,
RequestVerb: req.Attributes.Request.Http.Method,
UserAgent: req.Attributes.Request.Http.Headers["User-Agent"],
ResponseStatusCode: int(code),
ResponseStatusCode: int(tracker.statusCode),
GatewaySource: gatewaySource,
ClientIP: req.Attributes.Request.Http.Headers["X-Forwarded-For"],
}
Expand Down
2 changes: 1 addition & 1 deletion server/authorization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ func TestImmediateAnalytics(t *testing.T) {
ClientIP: headers["X-Forwarded-For"],
UserAgent: headers["User-Agent"],
APIProxyRevision: 0,
ResponseStatusCode: int(rpc.PERMISSION_DENIED),
ResponseStatusCode: http.StatusForbidden,
DeveloperEmail: ac.DeveloperEmail,
DeveloperApp: ac.Application,
AccessToken: ac.AccessToken,
Expand Down

0 comments on commit a9bbd5c

Please sign in to comment.