Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bac7b8c

Browse files
Merge 25afdc3 into c565f50
2 parents c565f50 + 25afdc3 commit bac7b8c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CefSharp/PostDataExtensions.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ public static string GetCharSet(this IRequest request)
7777
/// </summary>
7878
/// <param name="postDataElement">post data</param>
7979
/// <param name="charSet">character set</param>
80-
/// <returns>encoded string</returns>
80+
/// <summary>
81+
/// Decodes the byte content of a post data element into a string using the specified character set or the default encoding.
82+
/// </summary>
83+
/// <param name="postDataElement">The post data element containing the bytes to decode.</param>
84+
/// <param name="charSet">Optional character set name to use for decoding. If invalid or not provided, the default encoding is used.</param>
85+
/// <returns>The decoded string, or null if the byte content is null or empty.</returns>
8186
public static string GetBody(this IPostDataElement postDataElement, string charSet = null)
8287
{
8388
var bytes = postDataElement.Bytes;

0 commit comments

Comments
 (0)