Skip to content

Commit 235c540

Browse files
committed
Fix: __WD_Get, __WD_Put & __WD_Delete pass additional URL components
1 parent 070a419 commit 235c540

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

wd_core.au3

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,9 +1304,9 @@ Func __WD_Get($sURL)
13041304
Else
13051305
Switch $aURL[1]
13061306
Case $INTERNET_SCHEME_HTTP
1307-
$sResponseText = _WinHttpSimpleRequest($hConnect, "GET", $aURL[6])
1307+
$sResponseText = _WinHttpSimpleRequest($hConnect, "GET", $aURL[6] & $aURL[7])
13081308
Case $INTERNET_SCHEME_HTTPS
1309-
$sResponseText = _WinHttpSimpleSSLRequest($hConnect, "GET", $aURL[6])
1309+
$sResponseText = _WinHttpSimpleSSLRequest($hConnect, "GET", $aURL[6] & $aURL[7])
13101310
Case Else
13111311
SetError($_WD_ERROR_InvalidValue)
13121312
EndSwitch
@@ -1386,9 +1386,9 @@ Func __WD_Post($sURL, $sData)
13861386
Else
13871387
Switch $aURL[1]
13881388
Case $INTERNET_SCHEME_HTTP
1389-
$sResponseText = _WinHttpSimpleRequest($hConnect, "POST", $aURL[6], Default, StringToBinary($sData, $_WD_BFORMAT))
1389+
$sResponseText = _WinHttpSimpleRequest($hConnect, "POST", $aURL[6] & $aURL[7], Default, StringToBinary($sData, $_WD_BFORMAT))
13901390
Case $INTERNET_SCHEME_HTTPS
1391-
$sResponseText = _WinHttpSimpleSSLRequest($hConnect, "POST", $aURL[6], Default, StringToBinary($sData, $_WD_BFORMAT))
1391+
$sResponseText = _WinHttpSimpleSSLRequest($hConnect, "POST", $aURL[6] & $aURL[7], Default, StringToBinary($sData, $_WD_BFORMAT))
13921392
Case Else
13931393
SetError($_WD_ERROR_InvalidValue)
13941394
EndSwitch
@@ -1464,9 +1464,9 @@ Func __WD_Delete($sURL)
14641464
Else
14651465
Switch $aURL[1]
14661466
Case $INTERNET_SCHEME_HTTP
1467-
$sResponseText = _WinHttpSimpleRequest($hConnect, "DELETE", $aURL[6])
1467+
$sResponseText = _WinHttpSimpleRequest($hConnect, "DELETE", $aURL[6] & $aURL[7])
14681468
Case $INTERNET_SCHEME_HTTPS
1469-
$sResponseText = _WinHttpSimpleSSLRequest($hConnect, "DELETE", $aURL[6])
1469+
$sResponseText = _WinHttpSimpleSSLRequest($hConnect, "DELETE", $aURL[6] & $aURL[7])
14701470
Case Else
14711471
SetError($_WD_ERROR_InvalidValue)
14721472
EndSwitch

0 commit comments

Comments
 (0)