Skip to content

Commit

Permalink
addressing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 26, 2018
1 parent f08d19f commit 3fbd230
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/connectors/druid/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import json
import logging
from multiprocessing.pool import ThreadPool
import re

from dateutil.parser import parse as dparse
from flask import escape, Markup
Expand Down Expand Up @@ -109,7 +110,7 @@ def data(self):

@staticmethod
def get_base_url(host, port):
if not host.startswith('http'):
if not re.match('http(s)?://', host):
host = 'http://' + host
return '{0}:{1}'.format(host, port)

Expand Down

0 comments on commit 3fbd230

Please sign in to comment.