Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Commit

Permalink
fix multipart/form-data null
Browse files Browse the repository at this point in the history
  • Loading branch information
xljiulang committed Jan 22, 2018
1 parent 005ba1d commit 9980ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NetworkSocket/Http/Internal/HttpRequestParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private static void GenerateMultipartFormAndFiles(HttpRequest request, ISessionS
else
{
var byes = streamReader.ReadArray(bodyLength);
var value = HttpUtility.UrlDecode(byes, Encoding.UTF8);
var value = byes.Length == 0 ? null : HttpUtility.UrlDecode(byes, Encoding.UTF8);
form.Add(mHead.Name, value);
}
streamReader.Position = streamReader.Position + boundaryBytes.Length;
Expand Down

0 comments on commit 9980ddd

Please sign in to comment.