Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #19 from ArtisanByteCrafter/dev
Browse files Browse the repository at this point in the history
fixes for #18
  • Loading branch information
ArtisanByteCrafter committed Jul 10, 2019
2 parents a0c1c1c + e55072f commit d4020d8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
Binary file modified KaceSMA.psd1
Binary file not shown.
15 changes: 8 additions & 7 deletions private/New-ApiPOSTRequest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@ Function New-ApiPOSTRequest {
}
Else { $APIUrl = "{0}{1}" -f $Server,$Endpoint }

$IRMSplat = @{
Uri = $APIUrl
Headers = $Headers
Method = 'PUT'
WebSession = $session
UseBasicParsing = $true
}

If (!($Body)) {
$IRMSplat = @{
Uri = $APIUrl
Headers = $Headers
Method = 'POST'
WebSession = $session
UseBasicParsing = $true
}
Invoke-RestMethod @IRMSplat
}
Else {
Expand Down
14 changes: 7 additions & 7 deletions private/New-ApiPUTRequest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ Function New-ApiPUTRequest {

$APIUrl = "{0}{1}" -f $Server,$Endpoint

$IRMSplat = @{
Uri = $APIUrl
Headers = $Headers
Method = 'PUT'
WebSession = $session
UseBasicParsing = $true
}

If (!($Body)) {
$IRMSplat = @{
Uri = $APIUrl
Headers = $Headers
Method = 'PUT'
WebSession = $session
UseBasicParsing = $true
}
Invoke-RestMethod @IRMSplat
}
Else {
Expand Down

0 comments on commit d4020d8

Please sign in to comment.