{"action":"created","issue":{"url":"https://api.github.com/repos/Piasy/BigImageViewer/issues/45","repository_url":"https://api.github.com/repos/Piasy/BigImageViewer","labels_url":"https://api.github.com/repos/Piasy/BigImageViewer/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/Piasy/BigImageViewer/issues/45/comments","events_url":"https://api.github.com/repos/Piasy/BigImageViewer/issues/45/events","html_url":"https://github.com/Piasy/BigImageViewer/issues/45","id":226836370,"number":45,"title":"请问如何添加请求头？比如Referer","user":{"login":"jayleco","id":9976349,"avatar_url":"https://avatars3.githubusercontent.com/u/9976349?v=3","gravatar_id":"","url":"https://api.github.com/users/jayleco","html_url":"https://github.com/jayleco","followers_url":"https://api.github.com/users/jayleco/followers","following_url":"https://api.github.com/users/jayleco/following{/other_user}","gists_url":"https://api.github.com/users/jayleco/gists{/gist_id}","starred_url":"https://api.github.com/users/jayleco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayleco/subscriptions","organizations_url":"https://api.github.com/users/jayleco/orgs","repos_url":"https://api.github.com/users/jayleco/repos","events_url":"https://api.github.com/users/jayleco/events{/privacy}","received_events_url":"https://api.github.com/users/jayleco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-07T07:26:48Z","updated_at":"2017-05-07T09:10:54Z","closed_at":null,"body":"由于有些带有防盗链的图片如果不带Referer将无法请求到真实的图片，我目前使用的是glide+SubsamplingScaleImageView，可以使用glide将图片下载到本地然后再将图片交给SubsamplingScaleImageView来显示，glide自带有添加header的方法所以很方便实现，但是您这个好像是直接使用图片地址请求图片，所以不知道glide+BigImageViewer应该怎么实现携带header请求"},"comment":{"url":"https://api.github.com/repos/Piasy/BigImageViewer/issues/comments/299692146","html_url":"https://github.com/Piasy/BigImageViewer/issues/45#issuecomment-299692146","issue_url":"https://api.github.com/repos/Piasy/BigImageViewer/issues/45","id":299692146,"user":{"login":"Piasy","id":3098704,"avatar_url":"https://avatars1.githubusercontent.com/u/3098704?v=3","gravatar_id":"","url":"https://api.github.com/users/Piasy","html_url":"https://github.com/Piasy","followers_url":"https://api.github.com/users/Piasy/followers","following_url":"https://api.github.com/users/Piasy/following{/other_user}","gists_url":"https://api.github.com/users/Piasy/gists{/gist_id}","starred_url":"https://api.github.com/users/Piasy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piasy/subscriptions","organizations_url":"https://api.github.com/users/Piasy/orgs","repos_url":"https://api.github.com/users/Piasy/repos","events_url":"https://api.github.com/users/Piasy/events{/privacy}","received_events_url":"https://api.github.com/users/Piasy/received_events","type":"User","site_admin":false},"created_at":"2017-05-07T09:10:54Z","updated_at":"2017-05-07T09:10:54Z","body":"无论是 Fresco 还是 Glide，都可以配置 OkHttpClient，有了这个之后，应该就可以为 HTTP 请求设置 header 了吧？"}}
{"actor":{"display_login":"Piasy"}}