Skip to content

Commit

Permalink
Merge pull request #859 from ovatsus/master
Browse files Browse the repository at this point in the history
Fix Http module not working correctly in Windows 8.1 (closes #858)
  • Loading branch information
Gustavo Guerra committed Jul 11, 2015
2 parents 20a59cd + 750495f commit 63c96e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Net/Http.fs
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ module private HttpHelpers =
return output
}

let getProperty (typ:Type) obj prop =
let getProperty (typ:Type) obj prop =
#if FX_NET_CORE_REFLECTION
let prop = typ.GetRuntimeProperty(prop)
let prop = try typ.GetRuntimeProperty prop with _ -> null
if prop <> null && prop.CanRead then
try
prop.GetValue(obj) |> unbox |> Some
Expand All @@ -356,7 +356,7 @@ module private HttpHelpers =
else
None
#else
let prop = typ.GetProperty(prop)
let prop = try typ.GetProperty prop with _ -> null
if prop <> null && prop.CanRead then
try
prop.GetValue(obj, [| |]) |> unbox |> Some
Expand Down

0 comments on commit 63c96e5

Please sign in to comment.