{"action":"created","issue":{"url":"https://api.github.com/repos/tomsik68/mclauncher-api/issues/14","labels_url":"https://api.github.com/repos/tomsik68/mclauncher-api/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/tomsik68/mclauncher-api/issues/14/comments","events_url":"https://api.github.com/repos/tomsik68/mclauncher-api/issues/14/events","html_url":"https://github.com/tomsik68/mclauncher-api/issues/14","id":91966214,"number":14,"title":"wrong usage of ETag/If-None-Match","user":{"login":"leozzyzheng","id":6134295,"avatar_url":"https://avatars.githubusercontent.com/u/6134295?v=3","gravatar_id":"","url":"https://api.github.com/users/leozzyzheng","html_url":"https://github.com/leozzyzheng","followers_url":"https://api.github.com/users/leozzyzheng/followers","following_url":"https://api.github.com/users/leozzyzheng/following{/other_user}","gists_url":"https://api.github.com/users/leozzyzheng/gists{/gist_id}","starred_url":"https://api.github.com/users/leozzyzheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leozzyzheng/subscriptions","organizations_url":"https://api.github.com/users/leozzyzheng/orgs","repos_url":"https://api.github.com/users/leozzyzheng/repos","events_url":"https://api.github.com/users/leozzyzheng/events{/privacy}","received_events_url":"https://api.github.com/users/leozzyzheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T03:13:14Z","updated_at":"2015-06-30T03:16:07Z","closed_at":null,"body":"In FileUtils.java function downloadFileWithProgress\r\n\r\n        URLConnection connection = u.openConnection();\r\n        if (md5 != null)\r\n            connection.setRequestProperty(\"If-None-Match\", md5);\r\n        connection.connect();\r\n\r\nThe correct usage should be\r\n\r\n        URLConnection connection = u.openConnection();\r\n        if (md5 != null)\r\n            connection.setRequestProperty(\"If-None-Match\", \"\\\"\" + md5 + \"\\\"\");\r\n        connection.connect();"},"comment":{"url":"https://api.github.com/repos/tomsik68/mclauncher-api/issues/comments/116930994","html_url":"https://github.com/tomsik68/mclauncher-api/issues/14#issuecomment-116930994","issue_url":"https://api.github.com/repos/tomsik68/mclauncher-api/issues/14","id":116930994,"user":{"login":"leozzyzheng","id":6134295,"avatar_url":"https://avatars.githubusercontent.com/u/6134295?v=3","gravatar_id":"","url":"https://api.github.com/users/leozzyzheng","html_url":"https://github.com/leozzyzheng","followers_url":"https://api.github.com/users/leozzyzheng/followers","following_url":"https://api.github.com/users/leozzyzheng/following{/other_user}","gists_url":"https://api.github.com/users/leozzyzheng/gists{/gist_id}","starred_url":"https://api.github.com/users/leozzyzheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leozzyzheng/subscriptions","organizations_url":"https://api.github.com/users/leozzyzheng/orgs","repos_url":"https://api.github.com/users/leozzyzheng/repos","events_url":"https://api.github.com/users/leozzyzheng/events{/privacy}","received_events_url":"https://api.github.com/users/leozzyzheng/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T03:16:07Z","updated_at":"2015-06-30T03:16:07Z","body":"And also , using HttpURLConnection allow you to check the ResponseCode is 304 or not to decide the whether you should use the local file."}}