Permalink
Browse files

Fixing compilation on .NET 3.5

  • Loading branch information...
1 parent 9d491ff commit acef1aeee86e77ec63fd9895c0b09b866363e2c0 @ayende ayende committed Feb 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Raven.Client.Lightweight/Connection/HttpJsonRequest.cs
@@ -281,6 +281,7 @@ private string ReadStringInternal(Func<WebResponse> getResponse)
throw;
return result;
}
+#if !NET_3_5
catch (AggregateException e)
{
sp.Stop();
@@ -292,6 +293,7 @@ private string ReadStringInternal(Func<WebResponse> getResponse)
throw;
return result;
}
+#endif
ResponseHeaders = response.Headers;
ResponseStatusCode = ((HttpWebResponse)response).StatusCode;

0 comments on commit acef1ae

Please sign in to comment.