Skip to content

Commit

Permalink
- adds request adapter assignment for multipart body
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Jul 24, 2023
1 parent 2683207 commit fbb5dca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/RequestInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ public void SetContentFromParsable<T>(IRequestAdapter requestAdapter, string con
SetRequestType(item, activity);
writer.WriteObjectValue(null, item);
if(item is MultipartBody mpBody)
{
contentType += "; boundary=" + mpBody.Boundary;
mpBody.RequestAdapter = requestAdapter;
}
Headers.Add(ContentTypeHeader, contentType);
Content = writer.GetSerializedContent();
}
Expand Down

0 comments on commit fbb5dca

Please sign in to comment.