Skip to content

Commit

Permalink
Fixed a bug for connections that don't specify a port number.
Browse files Browse the repository at this point in the history
git-svn-id: https://pysolr.googlecode.com/svn/trunk@9 13ae9d4a-4d43-0410-997b-81b7443f7ec1
  • Loading branch information
jkocherhans committed Jan 30, 2008
1 parent 198ea5a commit 2d67a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysolr.py
Expand Up @@ -134,7 +134,7 @@ def __init__(self, url):
netloc = netloc.split(':')
self.host = netloc[0]
if len(netloc) == 1:
self.host = netloc[0]
self.host, self.port = netloc[0], None
else:
self.host, self.port = netloc
self.path = path.rstrip('/')
Expand Down

0 comments on commit 2d67a0b

Please sign in to comment.