Skip to content

Commit

Permalink
Merge dcbefbd into c40dde7
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote committed Aug 4, 2016
2 parents c40dde7 + dcbefbd commit a6a8bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions winrm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ def _build_url(target, transport):
scheme = match.group('scheme')
if not scheme:
# TODO do we have anything other than HTTP/HTTPS
scheme = 'https' if transport == 'ssl' else 'http'
scheme = 'https' if transport == 'ssl' or transport == 'ntlm' else 'http'
host = match.group('host')
port = match.group('port')
if not port:
port = 5986 if transport == 'ssl' else 5985
port = 5986 if transport == 'ssl' or transport == 'ntlm' else 5985
path = match.group('path')
if not path:
path = 'wsman'
Expand Down

0 comments on commit a6a8bc3

Please sign in to comment.