From 1692984e67ed061abdf900a3fe60abe815537bf7 Mon Sep 17 00:00:00 2001 From: Friedrich Weinmann Date: Tue, 19 Mar 2024 10:34:04 +0100 Subject: [PATCH] fixing typo --- MiniGraph/MiniGraph.psd1 | 2 +- MiniGraph/functions/Invoke-GraphRequest.ps1 | 2 +- changelog.md | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/MiniGraph/MiniGraph.psd1 b/MiniGraph/MiniGraph.psd1 index 190b278..4579151 100644 --- a/MiniGraph/MiniGraph.psd1 +++ b/MiniGraph/MiniGraph.psd1 @@ -4,7 +4,7 @@ RootModule = 'MiniGraph.psm1' # Version number of this module. -ModuleVersion = '1.3.17' +ModuleVersion = '1.3.18' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/MiniGraph/functions/Invoke-GraphRequest.ps1 b/MiniGraph/functions/Invoke-GraphRequest.ps1 index b45248b..fea0e0b 100644 --- a/MiniGraph/functions/Invoke-GraphRequest.ps1 +++ b/MiniGraph/functions/Invoke-GraphRequest.ps1 @@ -70,7 +70,7 @@ ContentType = $ContentType } if ($Query -match '^http://|https://') { - $parameters.Query = $Query + $parameters.Uri = $Query } if ($Body) { if ($Body -is [string]) { $parameters.Body = $Body } diff --git a/changelog.md b/changelog.md index 8dba267..a64d7b1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +## 1.3.18 (2024-03-19) + ++ Fix: Invoke-GraphRequest - fails to execute queries starting with http + ## 1.3.17 (2024-03-13) + Upd: Invoke-GraphRequest - supports full http links as query