Permalink
Browse files

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

  • Loading branch information...
1 parent 4a43433 commit ee108c1ad4f1d5578405d11151a5902ec561502b @ayende ayende committed Dec 12, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Raven.Client.Silverlight/Connection/Async/AsyncServerClient.cs
@@ -921,9 +921,10 @@ public Task<Attachment> GetAttachmentAsync(string key)
{
try
{
+ var buffer = task.Result;
return new Attachment
{
- Data = () => new MemoryStream(task.Result),
+ Data = () => new MemoryStream(buffer),
Etag = new Guid(request.ResponseHeaders["ETag"].First()),
Metadata = request.ResponseHeaders.FilterHeaders(isServerDocument: false)
};

0 comments on commit ee108c1

Please sign in to comment.