The story seems to be already implemented by @wjhsf a couple of months ago with these lines in operations.ts.hbs:
const headers: Record<string, string> = { {{#if (isRequestWithPayload request)}} "Content-Type": "{{{getMediaTypeFromRequest request}}}", {{/if}} ...this.clientConfig.headers, ...options?.headers };
In this PR I have added a test that checks if the content-type is urlencoded, the body should be urlencoded.
The story seems to be already implemented by @wjhsf a couple of months ago with these lines in operations.ts.hbs:
const headers: Record<string, string> = { {{#if (isRequestWithPayload request)}} "Content-Type": "{{{getMediaTypeFromRequest request}}}", {{/if}} ...this.clientConfig.headers, ...options?.headers };
In this PR I have added a test that checks if the content-type is urlencoded, the body should be urlencoded.