Skip to content

Commit

Permalink
Merge pull request #17 from Moesif/refactor-read-body-for-core3
Browse files Browse the repository at this point in the history
Refactor: Support reading request body for Asp NetCore3
  • Loading branch information
dgilling authored Oct 22, 2019
2 parents 337b72b + 5aaf604 commit ed8dbb8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Moesif.Middleware/Moesif.Middleware.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>Moesif.Middleware</id>
<version>1.0.2</version>
<version>1.0.3</version>
<title>MoesifMiddleware</title>
<authors>Moesif</authors>
<owners>Moesif</owners>
Expand Down
3 changes: 1 addition & 2 deletions Moesif.Middleware/NetCore/MoesifMiddlewareNetCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#if NETCORE
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Internal;
using Microsoft.AspNetCore.Http.Extensions;
using Moesif.Middleware.NetCore.Helpers;
#endif
Expand Down Expand Up @@ -343,7 +342,7 @@ private async Task<EventRequestModel> FormatRequest(HttpRequest request)
{
var body = request.Body;

request.EnableRewind();
request.EnableBuffering();

var buffer = new byte[Convert.ToInt32(request.ContentLength)];

Expand Down
4 changes: 2 additions & 2 deletions Moesif.Middleware/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.2")]
[assembly: AssemblyFileVersion("1.0.2")]
[assembly: AssemblyVersion("1.0.3")]
[assembly: AssemblyFileVersion("1.0.3")]

0 comments on commit ed8dbb8

Please sign in to comment.