fix: ensure Content-Type header priority in the CLI (#4242)
- Ensure the `Content-Type` header takes priority over the value set in the request body. - Introduces `HoppRESTRequest` schema `v6` with `text/xml` added under the supported content types.
This commit is contained in:
@@ -12,6 +12,7 @@ export const knownContentTypes: Record<ValidContentTypes, Content> = {
|
||||
"multipart/form-data": "multipart",
|
||||
"text/html": "html",
|
||||
"text/plain": "plain",
|
||||
"text/xml": "xml",
|
||||
}
|
||||
|
||||
type ContentTypeTitle =
|
||||
@@ -33,6 +34,7 @@ export const segmentedContentTypes: SegmentedContentType[] = [
|
||||
"application/hal+json",
|
||||
"application/vnd.api+json",
|
||||
"application/xml",
|
||||
"text/xml",
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user