mirror of
https://github.com/androidx/media.git
synced 2025-05-16 03:59:54 +08:00
Merge pull request #4156 from ValveSoftware/dev-v2
OkHttp extension - response headers instead of request in InvalidResponseCodeException
This commit is contained in:
commit
a962f2d4d8
@ -170,7 +170,7 @@ public class OkHttpDataSource implements HttpDataSource {
|
||||
|
||||
// Check for a valid response code.
|
||||
if (!response.isSuccessful()) {
|
||||
Map<String, List<String>> headers = request.headers().toMultimap();
|
||||
Map<String, List<String>> headers = response.headers().toMultimap();
|
||||
closeConnectionQuietly();
|
||||
InvalidResponseCodeException exception = new InvalidResponseCodeException(
|
||||
responseCode, headers, dataSpec);
|
||||
|
Loading…
x
Reference in New Issue
Block a user