Matthew Finkel pushed to branch android-components-60.0.5-10.0-1 at The Tor Project / Applications / android-components
Commits:
-
f66e0b39
by Matthew Finkel at 2020-11-05T01:39:20+00:00
3 changed files:
- components/browser/engine-gecko-beta/src/main/java/mozilla/components/browser/engine/gecko/fetch/GeckoViewFetchClient.kt
- components/browser/icons/src/main/java/mozilla/components/browser/icons/loader/HttpIconLoader.kt
- components/concept/fetch/src/main/java/mozilla/components/concept/fetch/Request.kt
Changes:
... | ... | @@ -80,7 +80,6 @@ private fun Request.toWebRequest(): WebRequest = WebRequest.Builder(url) |
80 | 80 |
.addHeadersFrom(this)
|
81 | 81 |
.addBodyFrom(this)
|
82 | 82 |
.cacheMode(if (useCaches) CACHE_MODE_DEFAULT else CACHE_MODE_RELOAD)
|
83 |
- .origin(origin)
|
|
84 | 83 |
.build()
|
85 | 84 |
|
86 | 85 |
private fun WebRequest.Builder.addHeadersFrom(request: Request): WebRequest.Builder {
|
... | ... | @@ -51,8 +51,7 @@ class HttpIconLoader( |
51 | 51 |
connectTimeout = Pair(CONNECT_TIMEOUT, TimeUnit.SECONDS),
|
52 | 52 |
readTimeout = Pair(READ_TIMEOUT, TimeUnit.SECONDS),
|
53 | 53 |
redirect = Request.Redirect.FOLLOW,
|
54 |
- useCaches = true,
|
|
55 |
- origin = request.url)
|
|
54 |
+ useCaches = true)
|
|
56 | 55 |
|
57 | 56 |
return try {
|
58 | 57 |
val response = httpClient.fetch(downloadRequest)
|
... | ... | @@ -46,8 +46,7 @@ data class Request( |
46 | 46 |
val body: Body? = null,
|
47 | 47 |
val redirect: Redirect = Redirect.FOLLOW,
|
48 | 48 |
val cookiePolicy: CookiePolicy = CookiePolicy.INCLUDE,
|
49 |
- val useCaches: Boolean = true,
|
|
50 |
- val origin: String? = null
|
|
49 |
+ val useCaches: Boolean = true
|
|
51 | 50 |
) {
|
52 | 51 |
/**
|
53 | 52 |
* A [Body] to be send with the [Request].
|