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

javascript fix to https connection to http Presto server #47

Merged
merged 3 commits into from
Aug 18, 2016

Conversation

dabaitu
Copy link

@dabaitu dabaitu commented Aug 18, 2016

Without configuring Presto server with SSL and require all users to access via https, when https requests go to an http Presto server, the server responds with nextUri specified in http which causes jquery to be blocked and hangs the page from loading.
This change uses javascript to detect mode, and if it's https it will modify returned nextUri from http to https.

@billonahill
Copy link
Collaborator

billonahill commented Aug 18, 2016

LGTM. Could you also submit this to upstream presto. When describing the issue it's helpful to explain that in our environment the client connects to a proxy via https which proxies to presto via http.

Also please link this to the presto ticket, so we can easily back merge into twitter-master with any changes that come during the presto review.

@dabaitu
Copy link
Author

dabaitu commented Aug 18, 2016

will do.

@dabaitu dabaitu merged commit c49e1d1 into twitter-forks:twitter-master Aug 18, 2016
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.

2 participants