Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinmoris committed Dec 19, 2017
2 parents a503ad0 + d64af1d commit b85e91c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Release Notes
=============

## 0.1.0-beta-511

#### Bug fixes

- Fixed `ReadBodyFromRequestAsync` where the stream has been disposed before read could complete.

## 0.1.0-beta-510

#### Improvements
Expand Down
2 changes: 1 addition & 1 deletion src/Giraffe/Giraffe.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<AssemblyName>Giraffe</AssemblyName>
<Version>0.1.0-beta-510</Version>
<Version>0.1.0-beta-511</Version>
<Description>A native functional ASP.NET Core web framework for F# developers.</Description>
<Copyright>Copyright 2017 Dustin Moris Gorski</Copyright>
<NeutralLanguage>en-GB</NeutralLanguage>
Expand Down
6 changes: 4 additions & 2 deletions src/Giraffe/HttpContextExtensions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ type HttpContext with
/// ---------------------------
member this.ReadBodyFromRequestAsync() =
use reader = new StreamReader(this.Request.Body, Text.Encoding.UTF8)
reader.ReadToEndAsync()
task {
use reader = new StreamReader(this.Request.Body, Text.Encoding.UTF8)
return! reader.ReadToEndAsync()
}

member this.BindJsonAsync<'T>() = this.BindJsonAsync<'T> defaultJsonSerializerSettings

Expand Down

0 comments on commit b85e91c

Please sign in to comment.