You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, the Set-PodeResponseAttachment function assumes the content type of the response based on the attachment/file's extension (ie: .json gets mapped to application/json).
In most cases the extensive mapping is correct. However, there should be a new -ContentType parameter on the Set-PodeResponseAttachment function that, if supplied, will be used instead of the mapping.
This new parameter should be an optional string parameter, with the help comment updated. If supplied, the $WebEvent.Response.ContentType should be set as this value instead of:
At the moment, the
Set-PodeResponseAttachment
function assumes the content type of the response based on the attachment/file's extension (ie:.json
gets mapped toapplication/json
).In most cases the extensive mapping is correct. However, there should be a new
-ContentType
parameter on theSet-PodeResponseAttachment
function that, if supplied, will be used instead of the mapping.This new parameter should be an optional string parameter, with the help comment updated. If supplied, the
$WebEvent.Response.ContentType
should be set as this value instead of:The text was updated successfully, but these errors were encountered: