mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue