-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Compatibility: disable range requests for iOS and refactor user agent detection #7841
Conversation
7a851c8
to
7d39bd2
Compare
This patch moves the user agent checks to the top of the file to reduce duplication and to provide a clear overview of which user agent we are detecting. Moreover, we extract inline user agent checks as well and use existing checks in more places. Finally, we fix the indenting in one place for consistency.
7d39bd2
to
cf3a742
Compare
Thanks for the patch! |
@timvandermeij I had range requests working on iOS10/9 . I'm not sure it is a right approach to disable them completely for the iOS. Though I did experience the same issue as @Snuffleupagus in WeChat and the way I've fixed it was similar to #7822 . Targeted conditions are better in this case. |
Perhaps not, but it's a simple one and we really don't want to waste a lot of development/testing time on fine-tuning
Please note that I've never used, nor have I claimed to use, the WeChat browser (which seems to be specific to the Chinese market). |
Sorry, meant to mention the other user who had WeChat issue. I see where you stand on this issue. Being on the cautionary side makes sense. Someone might argue that fine-tuning |
Compatibility: disable range requests for iOS and refactor user agent detection
Fixes #7815.
Supersedes #7822.
Supersedes #7824.