Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make port number optional in superset for druid (apache#5020)
* Make port number optional in superset for druid It appears that urllib throws error with ssl if port number is provided ``` url = "https://example.com:443/druid/v2" req = urllib.request.Request(url, druid_query_str, headers) res = urllib.request.urlopen(req) ``` The above call fails with the following error: ``` urllib2.HTTPError: HTTP Error 404: Not Found ``` If url is set to https://example.com/druid/v2 it works, this change makes the port number optional. * Rewrite if/else in concisely python way
- Loading branch information