We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 (oldEtag != null && !oldEtag.equals(etag)) throw new IllegalArgumentException();
etag 是什么?怎么避免此异常?
The text was updated successfully, but these errors were encountered:
Etag是断点续传的前置条件,如果有变更说明远端资源变化,此时便不应该断点续传而是从头开始下载。具体可以参看这里: HTTP ETag.
我根据FileDownloader 1.5.5,以及你提供的DownloadStatusCallback.java:96定位到这个问题。
DownloadStatusCallback.java:96
这里的代码逻辑上下文是需要确保是一个正确的断点续传,或正确的开始获取数据,防止随后数据获取与本地资源数据不匹配的问题。
其实如果是合法的HTTP返回是不会有这个问题的,因为在遇到这个问题之前,已经对远端数据更改进行来处理。
但是如果是非法HTTP返回应该会可能遇到这个问题,具体情况是:
该问题会在新版本中修复。
Sorry, something went wrong.
fix(crash): fix illegal argument exception when response code is 206 …
10494b2
…and its etag is changed and handle 416 case\nCloses #612
244d426
No branches or pull requests
if (oldEtag != null && !oldEtag.equals(etag)) throw new IllegalArgumentException();
etag 是什么?怎么避免此异常?
The text was updated successfully, but these errors were encountered: