Skip to content

Content-Type header fixes to other HTTP tasks #32

@jannejjj

Description

@jannejjj

Dupe of #31. There was handling in place where we specifically removed the Content-Type header if the request method was not PUT, POST, DELETE or PATCH, since the HttpClient would fail in other cases. HttpClient appears to have been since updated to tolerate these cases.

The handling was removed from HTTP.Request under #31, but the same handling should also be removed from SendBytes, RequestBytes and SendAndReceiveBytes. That's what this ticket is for.

EDIT: SendBytes and SendAndReceiveBytes don't support GET requests (obviously), and the chances of anyone wanting to send an OPTIONS request or something with content are minimal, so only RequestBytes needs to be modified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions