Skip to content

Commit 1ff399e

Browse files
JonathanCrdCopilot
andcommitted
chore: regenerate Sample-TypeSpec to sync with current generator output
This change is pre-existing regeneration drift unrelated to the bug fix. The NoContentType convenience method now uses BinaryContent.Create() for the model-typed body property instead of the implicit operator. Both paths are functionally correct. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6ed8048 commit 1ff399e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public virtual ClientResult<RoundTripModel> NoContentType(Wrapper info, Cancella
334334
{
335335
Argument.AssertNotNull(info, nameof(info));
336336

337-
ClientResult result = NoContentType(info.P2, info.P1, info.Action, cancellationToken.ToRequestOptions());
337+
ClientResult result = NoContentType(info.P2, info.P1, BinaryContent.Create(info.Action), cancellationToken.ToRequestOptions());
338338
return ClientResult.FromValue((RoundTripModel)result, result.GetRawResponse());
339339
}
340340

@@ -347,7 +347,7 @@ public virtual async Task<ClientResult<RoundTripModel>> NoContentTypeAsync(Wrapp
347347
{
348348
Argument.AssertNotNull(info, nameof(info));
349349

350-
ClientResult result = await NoContentTypeAsync(info.P2, info.P1, info.Action, cancellationToken.ToRequestOptions()).ConfigureAwait(false);
350+
ClientResult result = await NoContentTypeAsync(info.P2, info.P1, BinaryContent.Create(info.Action), cancellationToken.ToRequestOptions()).ConfigureAwait(false);
351351
return ClientResult.FromValue((RoundTripModel)result, result.GetRawResponse());
352352
}
353353

0 commit comments

Comments
 (0)