Skip to content

Commit

Permalink
Updating PSA Build (Enabling -ContentType) (Fixes #26)
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Sep 12, 2023
1 parent a133d6c commit 9361d79
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Commands/Protocol/Watch-AtSyncRepos.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ $httpMethod = ''
$InvokeAtSplat = [Ordered]@{Method=$httpMethod}
$InvokeAtSplat["PSTypeName"] = $NamespaceID
$parameterAliases = [Ordered]@{}
$AsByte = $false



Expand Down Expand Up @@ -51,7 +52,13 @@ end {
$parameterQueue.ToArray() |
Invoke-AtProtocol -Method $httpMethod -NamespaceID $NamespaceID -Parameter {
$_
} -ParameterAlias $parameterAliases @InvokeAtSplat
} -ParameterAlias $parameterAliases @InvokeAtSplat -ContentType $(
if ($ContentType) {
$ContentType
} else {
"application/json"
}
) -AsByte:$AsByte

}
}
Expand Down

0 comments on commit 9361d79

Please sign in to comment.