Skip to content

Commit fb1eedb

Browse files
committed
Changed: Some code for HTTPS vs HTTP scheme detection algo related to rev156.
1 parent edc2d92 commit fb1eedb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

WinHttp.au3

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,7 @@ Func _WinHttpConnect($hSession, $sServerName, $iServerPort = Default)
159159
Else
160160
$sServerName = $aURL[2]
161161
$iServerPort = $aURL[3]
162-
If $iServerPort = $INTERNET_DEFAULT_HTTPS_PORT Then
163-
$iScheme = $INTERNET_SCHEME_HTTPS
164-
ElseIf $iServerPort = $INTERNET_DEFAULT_HTTP_PORT Then
165-
$iScheme = $INTERNET_SCHEME_HTTP
166-
EndIf
162+
$iScheme = $aURL[1]
167163
EndIf
168164
Local $aCall = DllCall($hWINHTTPDLL__WINHTTP, "handle", "WinHttpConnect", _
169165
"handle", $hSession, _

0 commit comments

Comments
 (0)