You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some websites may not return a domain in their 302 location header, for example, it may return search.php?mod=forum. If you use cookieJar.saveFromResponse(Uri.parse("search.php?mod=forum"), cookies) in this case, it will cause an error in cookieJar because url not contain domain
Expected Result
NO
Actual Result
uri = Uri.parse(response.realUri.origin!).resolve(location);
The text was updated successfully, but these errors were encountered:
Fixes#1759Fixes#1761
### New Pull Request Checklist
- [x] I have read the
[Documentation](https://pub.dev/documentation/dio/latest/)
- [x] I have searched for a similar pull request in the
[project](https://github.com/cfug/dio/pulls) and found none
- [x] I have updated this branch with the latest `main` branch to avoid
conflicts (via merge from master or rebase)
- [x] I have added the required tests to prove the fix/feature I'm
adding
- [x] I have updated the documentation (if necessary)
- [x] I have run the tests without failures
- [x] I have updated the `CHANGELOG.md` in the corresponding package
---------
Signed-off-by: Alex Li <github@alexv525.com>
Package
cookie_manager
Version
2.1.3
Output of
flutter doctor -v
Dart Version
Steps to Reproduce
dio/plugins/cookie_manager/lib/src/cookie_mgr.dart
Lines 116 to 129 in c2347f3
有些网站的302 location 它是没有返回域名的, 比如返回
search.php?mod=forum
,如果这时候 cookieJar.saveFromResponse( Uri.parse("search.php?mod=forum), cookies, ), cookieJar就会报错. 因为没有domain
Some websites may not return a domain in their 302 location header, for example, it may return
search.php?mod=forum
. If you usecookieJar.saveFromResponse(Uri.parse("search.php?mod=forum"), cookies)
in this case, it will cause an error incookieJar
because url not containdomain
Expected Result
NO
Actual Result
uri = Uri.parse(response.realUri.origin!).resolve(location);
The text was updated successfully, but these errors were encountered: