shadowsocks / shadowsocks-android

A shadowsocks client for Android
Other
35.23k stars 11.57k forks source link

订阅功能不会遵循HTTP重定向 #2786

Closed lyz05 closed 3 years ago

lyz05 commented 3 years ago

Describe the bug 订阅URL返回HTTP 302状态码,软件不会跟随Header中的Location重定向。 报错:java.io.EOFException: End of input at line 1 column 1 path $

To Reproduce Steps to reproduce the behavior:

  1. 侧边栏——订阅
  2. 编辑订阅

Screenshots 订阅截图 订阅截图 curl接口截图 CURL接口截图

dev4u commented 3 years ago

能自己编译的话,加个代码设置一下connect对象的属性: https://github.com/shadowsocks/shadowsocks-android/blob/c59af093de3ad6e65b57605904a5617a932655b6/core/src/main/java/com/github/shadowsocks/acl/Acl.kt#L154

Mygod commented 3 years ago

PR is welcome. :)

lyz05 commented 3 years ago

服务端响应的重定向地址为http时会触发这个错误,如果是https就能正常订阅