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:
James George
2024-08-07 09:16:27 -07:00
committed by GitHub
parent 31b691bb37
commit a8bcc75467
11 changed files with 290 additions and 32 deletions

View File

@@ -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",
],
},
{