okhttp3:cookieJar:如何使用所有响应cookie始终调用saveFromResponse

时间:2016-04-07 00:58:00

标签: okhttp3

如果Cookie.parseAll(...)返回空Cookie列表,则看起来不会调用cookieJar.saveFromResponse(...):( https://github.com/square/okhttp/blob/master/okhttp/src/main/java/okhttp3/internal/http/HttpEngine.java#L867

和Cookie.parseAll(...)根据域匹配和其他逻辑排除响应cookie:(https://github.com/square/okhttp/blob/master/okhttp/src/main/java/okhttp3/Cookie.java#L302

是否可以绕过Cookie.parse域匹配逻辑,以便使用尚未被域削减的响应cookie调用cookieJar.saveFromResponse(...)?

0 个答案:

没有答案