Skip to content

Commit 865d405

Browse files
committed
Changed: Internal change for _WinHttpSimpleRequest and _WinHttpSimpleSSLRequest.
1 parent a913516 commit 865d405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WinHttp.au3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ Func _WinHttpSimpleRequest($hConnect, $sType = Default, $sPath = Default, $sRefe
16911691
__WinHttpSetCredentials($hRequest, $sHeader, $sDta, $sCredName, $sCredPass)
16921692
Local $iExtended = _WinHttpQueryHeaders($hRequest, $WINHTTP_QUERY_STATUS_CODE)
16931693
If $fGetHeaders Then
1694-
Local $aData[2] = [_WinHttpQueryHeaders($hRequest), _WinHttpSimpleReadData($hRequest, $iMode)]
1694+
Local $aData[3] = [_WinHttpQueryHeaders($hRequest), _WinHttpSimpleReadData($hRequest, $iMode), _WinHttpQueryOption($hRequest, $WINHTTP_OPTION_URL)]
16951695
_WinHttpCloseHandle($hRequest)
16961696
Return SetExtended($iExtended, $aData)
16971697
EndIf
@@ -1819,7 +1819,7 @@ Func _WinHttpSimpleSSLRequest($hConnect, $sType = Default, $sPath = Default, $sR
18191819
If @error Then Return SetError(@error, 0, 0)
18201820
__WinHttpSetCredentials($hRequest, $sHeader, $sDta, $sCredName, $sCredPass)
18211821
If $fGetHeaders Then
1822-
Local $aData[2] = [_WinHttpQueryHeaders($hRequest), _WinHttpSimpleReadData($hRequest, $iMode)]
1822+
Local $aData[3] = [_WinHttpQueryHeaders($hRequest), _WinHttpSimpleReadData($hRequest, $iMode), _WinHttpQueryOption($hRequest, $WINHTTP_OPTION_URL)]
18231823
_WinHttpCloseHandle($hRequest)
18241824
Return $aData
18251825
EndIf

0 commit comments

Comments
 (0)