Skip to content

Le Azure Core is broken when trying to send requests with content-type: text/plain. #12137

@johanste

Description

@johanste
  • Package Name: azure-core

Describe the bug
We disregard the content-type header and try to set the body as json unless it is an xml element tree. See https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/azure/core/pipeline/transport/_base.py#L705

We either have to provide a new parameter type (e.g. body in addition to content, or we should honor the content-type header when we serialize the information.

Metadata

Metadata

Assignees

Labels

Azure.CoreClientThis issue points to a problem in the data-plane of the library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions