Skip to content

Commit

Permalink
Bug fix with explore URL command; prepares for 2.27.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebebak committed Oct 23, 2018
1 parent afd99b7 commit 57ac54c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/responses.py
Expand Up @@ -282,6 +282,9 @@ def same_domain(e_url, url):
This list suggests that public APIs overwhelmingly have gTLDs without '.' chars.
"""
e_netloc, netloc = parse.urlparse(e_url).netloc, parse.urlparse(url).netloc
if e_netloc == netloc:
return True

d, dd = sorted([n.split('.') for n in (e_netloc, netloc)], key=lambda d: len(d))
parts = max(2, len(dd)-1)
if len(d) < 2: # not a valid URL, but this method not responsible for raising exception
Expand Down
2 changes: 2 additions & 0 deletions messages/2.27.2.txt
@@ -0,0 +1,2 @@
# Bug Fix
__Explore URL in Response Tab__ command works for localhost URLs.

0 comments on commit 57ac54c

Please sign in to comment.