Skip to content

Commit

Permalink
Use part name from object for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Mar 26, 2024
1 parent 8244d4a commit 87377b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MultipartBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void Serialize(ISerializationWriter writer)
}
catch(InvalidOperationException) when(part?.Content is byte[] currentBinary)
{ // binary payload
writer.WriteByteArrayValue(pair.Key, currentBinary);
writer.WriteByteArrayValue(part.Name, currentBinary);
}
}
AddNewLine(writer);
Expand Down

0 comments on commit 87377b6

Please sign in to comment.