{"action":"created","issue":{"url":"https://api.github.com/repos/square/picasso/issues/900","repository_url":"https://api.github.com/repos/square/picasso","labels_url":"https://api.github.com/repos/square/picasso/issues/900/labels{/name}","comments_url":"https://api.github.com/repos/square/picasso/issues/900/comments","events_url":"https://api.github.com/repos/square/picasso/issues/900/events","html_url":"https://github.com/square/picasso/issues/900","id":58218657,"number":900,"title":"Picasso 2.5 can't add auth header","user":{"login":"favn1585","id":3111598,"avatar_url":"https://avatars.githubusercontent.com/u/3111598?v=3","gravatar_id":"","url":"https://api.github.com/users/favn1585","html_url":"https://github.com/favn1585","followers_url":"https://api.github.com/users/favn1585/followers","following_url":"https://api.github.com/users/favn1585/following{/other_user}","gists_url":"https://api.github.com/users/favn1585/gists{/gist_id}","starred_url":"https://api.github.com/users/favn1585/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/favn1585/subscriptions","organizations_url":"https://api.github.com/users/favn1585/orgs","repos_url":"https://api.github.com/users/favn1585/repos","events_url":"https://api.github.com/users/favn1585/events{/privacy}","received_events_url":"https://api.github.com/users/favn1585/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-19T14:58:20Z","updated_at":"2016-04-28T07:57:12Z","closed_at":"2015-02-19T20:50:58Z","body":"At Picasso 2.4 we were added auth token using\r\n\r\n``` java\r\n        OkHttpDownloader downloader = new OkHttpDownloader(context) {\r\n            @Override\r\n            protected HttpURLConnection openConnection(Uri uri) throws IOException {\r\n                HttpURLConnection connection = super.openConnection(uri);\r\n                connection.setRequestProperty(RestClient.AUTHORIZATION_KEY, RestClient.getValidAuth());\r\n                return connection;\r\n            }\r\n        };\r\n```\r\n\r\nAt 2.5 method\r\n\r\n```java\r\nsuper.openConnection(uri);\r\n```\r\nnot available. \r\nAlso if we use UrlConnectionDownloader images are not cached to disc.\r\n"},"comment":{"url":"https://api.github.com/repos/square/picasso/issues/comments/215340254","html_url":"https://github.com/square/picasso/issues/900#issuecomment-215340254","issue_url":"https://api.github.com/repos/square/picasso/issues/900","id":215340254,"user":{"login":"max-pfeiffer","id":13573675,"avatar_url":"https://avatars.githubusercontent.com/u/13573675?v=3","gravatar_id":"","url":"https://api.github.com/users/max-pfeiffer","html_url":"https://github.com/max-pfeiffer","followers_url":"https://api.github.com/users/max-pfeiffer/followers","following_url":"https://api.github.com/users/max-pfeiffer/following{/other_user}","gists_url":"https://api.github.com/users/max-pfeiffer/gists{/gist_id}","starred_url":"https://api.github.com/users/max-pfeiffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-pfeiffer/subscriptions","organizations_url":"https://api.github.com/users/max-pfeiffer/orgs","repos_url":"https://api.github.com/users/max-pfeiffer/repos","events_url":"https://api.github.com/users/max-pfeiffer/events{/privacy}","received_events_url":"https://api.github.com/users/max-pfeiffer/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T07:57:12Z","updated_at":"2016-04-28T07:57:12Z","body":"Another addendum to @JakeWharton's comment above: when using OkHttp3 you want to use Jake's [OkHttp3Downloader](https://github.com/JakeWharton/picasso2-okhttp3-downloader).\r\n\r\n"}}