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

断点下载的判断为什么没有使用If-Range呢 #490

Open
genius158 opened this issue Oct 9, 2022 · 1 comment
Open

断点下载的判断为什么没有使用If-Range呢 #490

genius158 opened this issue Oct 9, 2022 · 1 comment

Comments

@genius158
Copy link

小白,再看断点下载的实现。
断点下载的判断为什么没有使用If-Range呢

比如以下 下载链接(来自应用宝)

           .url("https://s.syzs.qq.com/k_pack_up/25628/c27468760/syzs_installer_1000223279_Q.exe")
           .addHeader("Range", "bytes=10-2000")
           .addHeader("If-Match","\"bbfbe267c78cde09541a7e7eb0a1024d\"")/* 传啥都是 206 */
      //  .addHeader("If-Range", "Mon, 26 Sep 2022 15:05:42 GMT")/* 传上次返回的last-modified 206 */
      //  .addHeader("If-Range", "\"bbfbe267c78cde09541a7e7eb0a1024c\"")/* 传上次返回的etag 206 */
          .build());

明显If-Range 有效、If-Match存在问题

有谁能解释一下么。。。

@marekchen
Copy link

同感

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