Skip to content
Commit b7260cbc authored by Neil Fuller's avatar Neil Fuller
Browse files

Fix HttpResponseCacheTest in anticipation of an OkHttp upgrade.

OkHttp recently changed the behavior of their caching with
commit e74e3f3bf744ef7f4d8ee724a7cf2347e486cfab - it is now
neccessary to close the inputstream (or disconnect the
HttpURLConnection) for a response to be cached.

This change is (effectively) a no-op prior to the upgrade.

The behavior is undefined as to whether closing the
input stream is required for caching. OkHttp's new behavior
is consistent with other HttpURLConnection implementations
tried.

(cherry-picked from commit 62d0677b)

Change-Id: Ibe698a443ec98866787ed9da2698322fab856518
parent 881f8d1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment