[TCGC][Bug] TCGC added content-type header should be optional if request body is optional #1259
Closed
Labels
lib:tcgc
Issues for @azure-tools/typespec-client-generator-core library
Currently if the operation's request body is optional, TCGC will still add a required content-type header, this seems incorrect. Because for this case, we don't want to add content-type by default. It should be added when body is passed in. So we need to mark the content-type as optional.
The text was updated successfully, but these errors were encountered: