{"action":"created","issue":{"url":"https://api.github.com/repos/jpillora/grunt-aws/issues/50","labels_url":"https://api.github.com/repos/jpillora/grunt-aws/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/jpillora/grunt-aws/issues/50/comments","events_url":"https://api.github.com/repos/jpillora/grunt-aws/issues/50/events","html_url":"https://github.com/jpillora/grunt-aws/issues/50","id":100669112,"number":50,"title":"HTML file being uploaded as binary","user":{"login":"jordan314","id":1194589,"avatar_url":"https://avatars.githubusercontent.com/u/1194589?v=3","gravatar_id":"","url":"https://api.github.com/users/jordan314","html_url":"https://github.com/jordan314","followers_url":"https://api.github.com/users/jordan314/followers","following_url":"https://api.github.com/users/jordan314/following{/other_user}","gists_url":"https://api.github.com/users/jordan314/gists{/gist_id}","starred_url":"https://api.github.com/users/jordan314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordan314/subscriptions","organizations_url":"https://api.github.com/users/jordan314/orgs","repos_url":"https://api.github.com/users/jordan314/repos","events_url":"https://api.github.com/users/jordan314/events{/privacy}","received_events_url":"https://api.github.com/users/jordan314/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-13T01:13:20Z","updated_at":"2015-08-13T01:16:37Z","closed_at":null,"body":"Hi,\r\nThanks for this script.\r\nWhen I try running the s3 task, all of the files are uploaded fine except index.html, which is uploaded as a binary.\r\nHere is my config:\r\n```\r\n      s3: {\r\n      options: {\r\n        accessKeyId: \"<%= aws.key %>\",\r\n        secretAccessKey: \"<%= aws.secret %>\",\r\n        bucket: \"pushtest\"\r\n      },\r\n      build: {\r\n        cwd: \"dist/\",\r\n        src: \"**\"\r\n      }\r\n    }\r\n```\r\nWhen it runs, it uploads all the files, and index.html has the proper content-type of text/html in the s3 dashboard, but it looks like gobbledygook in the browser and when I download it in cyberduck it looks like binary."},"comment":{"url":"https://api.github.com/repos/jpillora/grunt-aws/issues/comments/130497477","html_url":"https://github.com/jpillora/grunt-aws/issues/50#issuecomment-130497477","issue_url":"https://api.github.com/repos/jpillora/grunt-aws/issues/50","id":130497477,"user":{"login":"jpillora","id":633843,"avatar_url":"https://avatars.githubusercontent.com/u/633843?v=3","gravatar_id":"","url":"https://api.github.com/users/jpillora","html_url":"https://github.com/jpillora","followers_url":"https://api.github.com/users/jpillora/followers","following_url":"https://api.github.com/users/jpillora/following{/other_user}","gists_url":"https://api.github.com/users/jpillora/gists{/gist_id}","starred_url":"https://api.github.com/users/jpillora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpillora/subscriptions","organizations_url":"https://api.github.com/users/jpillora/orgs","repos_url":"https://api.github.com/users/jpillora/repos","events_url":"https://api.github.com/users/jpillora/events{/privacy}","received_events_url":"https://api.github.com/users/jpillora/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T01:16:37Z","updated_at":"2015-08-13T01:16:37Z","body":"It's compressed using gzip, it seems as if cyberduck isn't decompressing\nit. If the consumers of your data aren't browsers (like cyberduck) then you\nmight need to disable compression.\n\nOn Thu, Aug 13, 2015 at 11:13 AM, jordan314 <notifications@github.com>\nwrote:\n\n> Hi,\n> Thanks for this script.\n> When I try running the s3 task, all of the files are uploaded fine except\n> index.html, which is uploaded as a binary.\n> Here is my config:\n> s3: {\n> options: {\n> accessKeyId: \"<%= aws.key %>\",\n> secretAccessKey: \"<%= aws.secret %>\",\n> bucket: \"pushtest\"\n> },\n> build: {\n> cwd: \"dist/\",\n> src: \"**\"\n> }\n> }\n>\n>    When it runs, it uploads all the files, and index.html has the proper content-type of text/html in the s3 dashboard, but it looks like gobbledygook in the browser and when I download it in cyberduck it looks like binary.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/jpillora/grunt-aws/issues/50>.\n>\n"}}