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

http post body丢失问题 #7

Open
DingSoung opened this issue Jan 12, 2018 · 5 comments
Open

http post body丢失问题 #7

DingSoung opened this issue Jan 12, 2018 · 5 comments

Comments

@DingSoung
Copy link

DingSoung commented Jan 12, 2018

           URLProtocol.wk_register(scheme: "https")
           URLProtocol.wk_register(scheme: "http")
           URLProtocol.registerClass(WebPURLProtocol.self)

后post body丢失你是怎么解决的?

@yeatse
Copy link
Owner

yeatse commented Jan 17, 2018

这个 trick 不适合用来拦截 http 和 https 请求,最好跟服务端定个协议,WebP 图片改成类似 webp://xxx.com/xxx 这样的形式,然后注册名为 webp 的 scheme 来拦截

@Lee0820
Copy link

Lee0820 commented Jul 9, 2019

@yeatse 感谢,这个提示直接让我越过了body 丢失的问题,感谢

@Lee0820
Copy link

Lee0820 commented Jul 9, 2019

@yeatse 作者请问下,现在有个这样的问题,链接是https的,我再用这种方式 最好跟服务端定个协议,WebP 图片改成类似 webp://xxx.com/xxx 这样的形式,然后注册名为 webp 的 scheme 来拦截,就拦截不到呢,不知道什么原因

@DingSoung
Copy link
Author

@yeatse 是不是跨域的问题

@bryanRRRR
Copy link

POST请求有办法支持嘛?各位大佬

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

4 participants