Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to check zuul is redirecting request to appropriate service #429

Open
shekhar-patil27 opened this issue May 4, 2018 · 2 comments

Comments

@shekhar-patil27
Copy link

Hi,

Could you please help me with the code snippet which will help to determine whether zuul is redirecting request to appropriate service.

I am using spring boot & zuul 1.x.

RequestContext.getCurrentContext().getRequest().getRequestURI().toString(); gives me the url which is initiated by browser client, however I am not able to figure out how to make sure zuul is redirecting this request internally to proper service.

Thanks,
Shekhar

@artgon
Copy link
Contributor

artgon commented May 9, 2018

It's probably better to ask this on the Spring tracker, but in Zuul 1.x you would use this method: https://github.com/Netflix/zuul/blob/1.x/zuul-netflix/src/main/java/com/netflix/zuul/context/NFRequestContext.java#L74

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants