{"action":"created","issue":{"url":"https://api.github.com/repos/ServiceStack/Issues/issues/572","repository_url":"https://api.github.com/repos/ServiceStack/Issues","labels_url":"https://api.github.com/repos/ServiceStack/Issues/issues/572/labels{/name}","comments_url":"https://api.github.com/repos/ServiceStack/Issues/issues/572/comments","events_url":"https://api.github.com/repos/ServiceStack/Issues/issues/572/events","html_url":"https://github.com/ServiceStack/Issues/issues/572","id":263685917,"number":572,"title":"Bytes not being compressed","user":{"login":"sundarchi1","id":31782486,"avatar_url":"https://avatars2.githubusercontent.com/u/31782486?v=4","gravatar_id":"","url":"https://api.github.com/users/sundarchi1","html_url":"https://github.com/sundarchi1","followers_url":"https://api.github.com/users/sundarchi1/followers","following_url":"https://api.github.com/users/sundarchi1/following{/other_user}","gists_url":"https://api.github.com/users/sundarchi1/gists{/gist_id}","starred_url":"https://api.github.com/users/sundarchi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sundarchi1/subscriptions","organizations_url":"https://api.github.com/users/sundarchi1/orgs","repos_url":"https://api.github.com/users/sundarchi1/repos","events_url":"https://api.github.com/users/sundarchi1/events{/privacy}","received_events_url":"https://api.github.com/users/sundarchi1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-08T01:55:26Z","updated_at":"2017-10-08T02:23:23Z","closed_at":"2017-10-08T01:59:12Z","author_association":"NONE","body":"I have this DTO:\r\n```\r\n[Route(\"/a/cjk\", \"GET\")]\r\npublic class CJK : IGet\r\n{\r\n\r\n}\r\n```\r\nImplemented as so:\r\n```\r\n[AddHeader(ContentType = MimeTypes.Binary)]\r\npublic object Get(CJK request)\r\n{\r\n    return new byte[123];\r\n}\r\n```\r\n\r\nUnlike my other ServiceStack services, which return json and plain-text, this one doesn't get compressed **even though the browser requests compression**. This seems like a bug.\r\n\r\nI did find `CompressResponseAttribute`, but I haven't needed to add that to any other service to get those compressed."},"comment":{"url":"https://api.github.com/repos/ServiceStack/Issues/issues/comments/334978250","html_url":"https://github.com/ServiceStack/Issues/issues/572#issuecomment-334978250","issue_url":"https://api.github.com/repos/ServiceStack/Issues/issues/572","id":334978250,"user":{"login":"mythz","id":89361,"avatar_url":"https://avatars1.githubusercontent.com/u/89361?v=4","gravatar_id":"","url":"https://api.github.com/users/mythz","html_url":"https://github.com/mythz","followers_url":"https://api.github.com/users/mythz/followers","following_url":"https://api.github.com/users/mythz/following{/other_user}","gists_url":"https://api.github.com/users/mythz/gists{/gist_id}","starred_url":"https://api.github.com/users/mythz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mythz/subscriptions","organizations_url":"https://api.github.com/users/mythz/orgs","repos_url":"https://api.github.com/users/mythz/repos","events_url":"https://api.github.com/users/mythz/events{/privacy}","received_events_url":"https://api.github.com/users/mythz/received_events","type":"User","site_admin":false},"created_at":"2017-10-08T02:23:23Z","updated_at":"2017-10-08T02:23:23Z","author_association":"OWNER","body":"ServiceStack does not auto-compresses responses, only when using caching or the `[CacheResponse]` attribute."}}
{"actor":{"display_login":"mythz"}}