Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教一个问题 #34

Closed
SJTUwbl opened this issue Nov 25, 2018 · 2 comments
Closed

请教一个问题 #34

SJTUwbl opened this issue Nov 25, 2018 · 2 comments

Comments

@SJTUwbl
Copy link

SJTUwbl commented Nov 25, 2018

浏览器访问一张图片,如何在代理服务器上进行拦截,将图片下载下来?谢谢!

@monkeyWie
Copy link
Owner

可以自定义一个拦截器,然后在afterResponse方法通过响应头里的Content-Type来判断是不是图片,是的话就下载下来。

@SJTUwbl
Copy link
Author

SJTUwbl commented Nov 26, 2018

实现了,多谢指导!

@SJTUwbl SJTUwbl closed this as completed Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants