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

add support for X-Forwarded-Prefix for path striping reverse proxy #1116

Merged

Conversation

bhugot
Copy link
Contributor

@bhugot bhugot commented Jun 19, 2017

It's a missing feature for the reverse proxy usage

@heldersepu
Copy link
Contributor

A unit test for this will be nice...

@bhugot
Copy link
Contributor Author

bhugot commented Jun 19, 2017

Done

var rootUrl = SwaggerDocsConfig.DefaultRootUrlResolver(request);

Assert.AreEqual("https://acmecorp.org:8080", rootUrl);
Assert.AreEqual("https://acmecorp.org:8080/api", rootUrl);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

@bhugot
Copy link
Contributor Author

bhugot commented Jun 19, 2017

Easy one

@bhugot
Copy link
Contributor Author

bhugot commented Jun 20, 2017

@heldersepu Do you know if you are going to do a new release soon?

@heldersepu
Copy link
Contributor

Sorry releases are not up to me...
see Issue #1053

@domaindrivendev domaindrivendev merged commit e7df06f into domaindrivendev:master Jul 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants