Skip to content

Content Type header shouldn't be dropped in @head operations #9809

@timotheeguerin

Description

@timotheeguerin
@head
op head(): { @header "content-type": "text/plain" };

in this case the getHttpOperation will not return the header and log a warning that it is ignore. It shouldn't as it is allowed in head operations

From Azure/typespec-azure#3975

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions