Skip to content

The body for HTTP responses should be allowed to be null for 3XX responses #325

@TravisEz13

Description

@TravisEz13

The body for HTTP responses should be allowed to be null for 3XX responses

I get a null reference exception if I leave the body null.

Here is my workaround

Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
    StatusCode = 301
    Headers = @{Location = $downloadURL}
    Body = ''
})

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions