Skip to content

Commit 5f90def

Browse files
committed
Use "application/octet-stream" as default MIME type if produces is an empty array
1 parent 11d9f68 commit 5f90def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi.Readers/V2/OpenApiResponseDeserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private static void ProcessProduces(MapNode mapNode, OpenApiResponse response, P
8686
Schema = schema
8787
};
8888

89-
response.Content.Add(string.Empty, mediaType);
89+
response.Content.Add("application/octet-stream", mediaType);
9090
}
9191

9292
foreach (var produce in produces)

0 commit comments

Comments
 (0)