File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments