Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Trust base_url if it starts with https?:// #561

Open
wants to merge 4 commits into
base: stable/0.3.x
Choose a base branch
from

Conversation

prhbrt
Copy link

@prhbrt prhbrt commented Oct 8, 2016

If the base_url is set to start with https?://, the deployer should know what he is doing, and hence it should not be set doubted by prepending https?:// depending on the original request's protocol.

The request protocol might have been altered by a proxy which transfers https to http, making traffic at the server seem http, while the internet sees it as https.

Herbert Kruitbosch added 4 commits October 7, 2016 16:33
… do not doubt that and try to prepend the protocol; https->http proxies in front of a website may remove the ssl-part for (company) internal http-trafic.
marcgibbons added a commit that referenced this pull request Oct 16, 2016
Fixes regression as of 2.0.6 which sees customizations added to the
Document, but ignored by the codec. This is a quick hack to allow
passing in extra OpenAPI spec data until we can find a better solution.

(Fixes #561)
marcgibbons added a commit that referenced this pull request Oct 16, 2016
Fixes regression as of 2.0.6 which sees customizations added to the
Document, but ignored by the codec. This is a quick workaround to allow
passing in extra OpenAPI spec data until we can find a better solution.

(Fixes #561)
@prhbrt
Copy link
Author

prhbrt commented Oct 16, 2016

What I understand is that version 2 is quite different from the first version, so it would be nice if this was also fixed in version 1.*

@marcgibbons
Copy link
Owner

Sorry, I incorrectly tagged this PR in a commit. Seems ok to me.

@marcgibbons marcgibbons reopened this Oct 16, 2016
@prhbrt
Copy link
Author

prhbrt commented Oct 16, 2016

Great, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants