Skip to content

Commit

Permalink
Fixed a bug where the wrong Content-Type was being set when submittin…
Browse files Browse the repository at this point in the history
…g a request
  • Loading branch information
bk-cs committed Jan 28, 2021
1 parent 7e4f436 commit fd75de6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Data/Parameters.psd1
Expand Up @@ -207,7 +207,7 @@
}
"X-CS-USERUUID" = @{
dynamic = "UserId"
in = "query"
in = "header"
required = $true
description = "Falcon user identifier"
pattern = "\w{8}-\w{4}-\w{4}-\w{4}-\w{12}"
Expand Down
4 changes: 2 additions & 2 deletions Private/Private.ps1
Expand Up @@ -300,8 +300,8 @@ function Get-Body {
Get-Content $Item.Value -Encoding Byte -Raw
}
$ByteArray = [System.Net.Http.ByteArrayContent]::New($ByteStream)
$ByteArray.Headers.Add('Content-Type', $Endpoint.produces)
Write-Verbose "[$($MyInvocation.MyCommand.Name)] File: $($Item.Value)"
$ByteArray.Headers.Add('Content-Type', $Endpoint.consumes)
Write-Verbose "[Get-Body] File: $($Item.Value)"
}
else {
if (-not($BodyOutput)) {
Expand Down

0 comments on commit fd75de6

Please sign in to comment.