Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixing an issue where we wouldn't respect 404 for attachments

  • Loading branch information...
commit ee108c1ad4f1d5578405d11151a5902ec561502b 1 parent 4a43433
Ayende Rahien authored December 12, 2011
3  Raven.Client.Silverlight/Connection/Async/AsyncServerClient.cs
@@ -921,9 +921,10 @@ public Task<Attachment> GetAttachmentAsync(string key)
921 921
 				{
922 922
 					try
923 923
 					{
  924
+						var buffer = task.Result;
924 925
 						return new Attachment
925 926
 								{
926  
-									Data = () => new MemoryStream(task.Result),
  927
+									Data = () => new MemoryStream(buffer),
927 928
 									Etag = new Guid(request.ResponseHeaders["ETag"].First()),
928 929
 									Metadata = request.ResponseHeaders.FilterHeaders(isServerDocument: false)
929 930
 								};

0 notes on commit ee108c1

Please sign in to comment.
Something went wrong with that request. Please try again.