Skip to content

Invoke-WebRequest if no -ContentType check -Headers @{Content-Type=...} #9851

Closed

Description

@CarloToso

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new Get-Foo cmdlet" instead of "New cmdlet."

Summary

  • Currently we only check for -ContentType and we ignore -Headers @{Content-Type=...} after this PR we also check for ContentType in headers

  • If we set both -ContentType and -Headers @{Content-Type=...} --> -ContentType is used

Content-Type is used to encode the body

Details

No response

Articles

Related Source Pull Requests

Related Source Issues

Activity

  1. added
    issue-doc-idea
    needs-triage
    on Mar 1, 2023
  2. added
    area-utility
    hold-for-pr
    hold-for-release
    and removed
    needs-triage
    on Mar 1, 2023
  3. added a commit that references this issue on Mar 14, 2023
  4. added this to the 7.4 milestone on Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-utilityissue-doc-idea

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions