{"action":"created","issue":{"url":"https://api.github.com/repos/janodvarko/harviewer/issues/92","repository_url":"https://api.github.com/repos/janodvarko/harviewer","labels_url":"https://api.github.com/repos/janodvarko/harviewer/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/janodvarko/harviewer/issues/92/comments","events_url":"https://api.github.com/repos/janodvarko/harviewer/issues/92/events","html_url":"https://github.com/janodvarko/harviewer/issues/92","id":171221093,"number":92,"title":"don't show base64 data to user","user":{"login":"kmike","id":107893,"avatar_url":"https://avatars.githubusercontent.com/u/107893?v=3","gravatar_id":"","url":"https://api.github.com/users/kmike","html_url":"https://github.com/kmike","followers_url":"https://api.github.com/users/kmike/followers","following_url":"https://api.github.com/users/kmike/following{/other_user}","gists_url":"https://api.github.com/users/kmike/gists{/gist_id}","starred_url":"https://api.github.com/users/kmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmike/subscriptions","organizations_url":"https://api.github.com/users/kmike/orgs","repos_url":"https://api.github.com/users/kmike/repos","events_url":"https://api.github.com/users/kmike/events{/privacy}","received_events_url":"https://api.github.com/users/kmike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-15T17:41:35Z","updated_at":"2016-08-15T19:23:29Z","closed_at":null,"body":"Hey,\r\n\r\nI started to use base64-encoded HAR content recently - it is not possible to guarantee that content can be passed in JSON otherwise, even for content with html or json mime types. HTML can use encoding other than utf-8, and even data which is sent with application/json content-type can be binary if server wants.\r\n\r\nBut this switch to 'base64 by default' makes it less easy for harviewer: e.g. for HTML both 'Response' and 'HTML' tabs display base64-encoded data. 'Highlighted' gets a decoded version, but for large HTML pages it is very slow. There is a similar issue for JSON files: 'Response' tab displays confusing base64-encoded data. 'Response' tab for images also shows base64 version of the binary data. \r\n\r\nI think it is better to either remove tabs with base64-encoded data, or to try decoding it more aggresively. I'm not sure what's the use case for showing base64 to user; user may think it is a bug (which I think happened already for Splash). Also, there is no visual distinction between base64-encoded data and non-base64-encoded data, so e.g. a true base64 response will look the same as a HTML response which HAR generating software encoded to base64 in order to store without data loss."},"comment":{"url":"https://api.github.com/repos/janodvarko/harviewer/issues/comments/239901852","html_url":"https://github.com/janodvarko/harviewer/issues/92#issuecomment-239901852","issue_url":"https://api.github.com/repos/janodvarko/harviewer/issues/92","id":239901852,"user":{"login":"kmike","id":107893,"avatar_url":"https://avatars.githubusercontent.com/u/107893?v=3","gravatar_id":"","url":"https://api.github.com/users/kmike","html_url":"https://github.com/kmike","followers_url":"https://api.github.com/users/kmike/followers","following_url":"https://api.github.com/users/kmike/following{/other_user}","gists_url":"https://api.github.com/users/kmike/gists{/gist_id}","starred_url":"https://api.github.com/users/kmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmike/subscriptions","organizations_url":"https://api.github.com/users/kmike/orgs","repos_url":"https://api.github.com/users/kmike/repos","events_url":"https://api.github.com/users/kmike/events{/privacy}","received_events_url":"https://api.github.com/users/kmike/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T19:23:29Z","updated_at":"2016-08-15T19:23:29Z","body":"Yep! [habr.ru.har.zip](https://github.com/janodvarko/harviewer/files/418774/habr.ru.har.zip)\r\n"}}
{"actor":{"display_login":"kmike"}}