{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "When I try to implement BZip2 content encoding using BZip2OutputStream class and code from https://github.com/benfoster/Fabrik.Common/blob/master/src/Fabrik.Common.WebAPI/GZipCompressor.cs, then this just doesn't work, the result stream has 4 bytes writen into it and client gets nothing... CURL gets some kind of error.\n\nWhen I use Ionic.Zlib.GZipStream to replace .NET GZipStream in code https://github.com/benfoster/Fabrik.Common/blob/master/src/Fabrik.Common.WebAPI/GZipCompressor.cs, then everything works fine. \n\nWhat can be wrong?\n\nBTW, if I rewrite code to \n\n```\npublic async Task CompressAsync(Stream source, Stream compressed)\n{\n    using (MemoryStream s = new MemoryStream())\n    using (BZip2OutputStream bzip = new BZip2OutputStream(s, true))\n    {\n        await source.CopyToAsync(bzip);\n        s.Seek(0, SeekOrigin.Begin);\n        await s.CopyToAsync(compressed);\n    }\n}\n```\nthen it also works fine. But I think it's not very efficient to use MemoryStream here.",
    "LastUpdatedDate": "2013-02-21T18:42:41.23-08:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2013-02-20T02:29:13.39-08:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "BZip2OutputStream fails to work in Web API",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 16053
  },
  "FileAttachments": [],
  "Comments": []
}