{"action":"created","issue":{"url":"https://api.github.com/repos/square/picasso/issues/900","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":6,"created_at":"2015-02-19T14:58:20Z","updated_at":"2015-08-20T21:58:36Z","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/133189875","html_url":"https://github.com/square/picasso/issues/900#issuecomment-133189875","issue_url":"https://api.github.com/repos/square/picasso/issues/900","id":133189875,"user":{"login":"dvdrlee","id":1951755,"avatar_url":"https://avatars.githubusercontent.com/u/1951755?v=3","gravatar_id":"","url":"https://api.github.com/users/dvdrlee","html_url":"https://github.com/dvdrlee","followers_url":"https://api.github.com/users/dvdrlee/followers","following_url":"https://api.github.com/users/dvdrlee/following{/other_user}","gists_url":"https://api.github.com/users/dvdrlee/gists{/gist_id}","starred_url":"https://api.github.com/users/dvdrlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvdrlee/subscriptions","organizations_url":"https://api.github.com/users/dvdrlee/orgs","repos_url":"https://api.github.com/users/dvdrlee/repos","events_url":"https://api.github.com/users/dvdrlee/events{/privacy}","received_events_url":"https://api.github.com/users/dvdrlee/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T21:58:36Z","updated_at":"2015-08-20T21:58:36Z","body":"An addendum to @JakeWharton's comment above: you'll want to make sure you are on v2.4.0 of OkHttp.  I was on 2.3.0 and it turns out the interceptors were shared between clones, this meant that the header was being added to all my requests. Looks like it was fixed in the 2.4.  Details in the changelog here https://github.com/square/okhttp/blob/master/CHANGELOG.md"}}