{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/2586","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/2586/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/2586/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/2586/events","html_url":"https://github.com/hapijs/hapi/issues/2586","id":85153332,"number":2586,"title":"Update hapijs/shot to 1.5.1 from 1.5.0","user":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hapijs/hapi/labels/dependency","name":"dependency","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/hapijs/hapi/milestones/145","html_url":"https://github.com/hapijs/hapi/milestones/8.6.1","labels_url":"https://api.github.com/repos/hapijs/hapi/milestones/145/labels","id":1140647,"number":145,"title":"8.6.1","description":"","creator":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2015-05-29T20:14:05Z","updated_at":"2015-06-04T15:43:40Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-06-04T15:43:40Z","updated_at":"2015-06-04T16:46:20Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/hapijs/hapi/issues/comments/108965637","html_url":"https://github.com/hapijs/hapi/issues/2586#issuecomment-108965637","issue_url":"https://api.github.com/repos/hapijs/hapi/issues/2586","id":108965637,"user":{"login":"iamdoron","id":3956042,"avatar_url":"https://avatars.githubusercontent.com/u/3956042?v=3","gravatar_id":"","url":"https://api.github.com/users/iamdoron","html_url":"https://github.com/iamdoron","followers_url":"https://api.github.com/users/iamdoron/followers","following_url":"https://api.github.com/users/iamdoron/following{/other_user}","gists_url":"https://api.github.com/users/iamdoron/gists{/gist_id}","starred_url":"https://api.github.com/users/iamdoron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamdoron/subscriptions","organizations_url":"https://api.github.com/users/iamdoron/orgs","repos_url":"https://api.github.com/users/iamdoron/repos","events_url":"https://api.github.com/users/iamdoron/events{/privacy}","received_events_url":"https://api.github.com/users/iamdoron/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T16:46:20Z","updated_at":"2015-06-04T16:46:20Z","body":"ok\r\n\r\nSo- the question is what is `res.payload` - is it a buffer? is it string in utf8? binary?\r\nThe thing is, when it was a 'binary' string, there was no problem with regular english strings and real binary strings (from a binary file, for instance), as they were in an equal encoding. \r\n\r\n```javascript\r\nnew Buffer(\"doron\", 'utf8').toString('binary') === \"doron\"\r\nnew Buffer(\"\\x89PNG\\r\", 'binary').toString('utf8') !== \"\\x89PNG\\r\"\r\n```\r\n\r\nAfter the change I introduced in shot, now `res.payload` is utf8, `res.payloadBuffer` is `Buffer`. I suggest to change `res.payload` to buffer, and let either hapi or the user decide what to do with it, since the buffer is what really being transmitted - maybe hapi tries to parse it to JSON or leave it be."}}