mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Update OkHttpDataSource.java
This commit is contained in:
parent
75b222d8d4
commit
6d4b364530
1 changed files with 1 additions and 1 deletions
|
|
@ -304,13 +304,13 @@ public class OkHttpDataSource extends BaseDataSource implements HttpDataSource {
|
|||
|
||||
// Check for a valid response code.
|
||||
if (!response.isSuccessful()) {
|
||||
Map<String, List<String>> headers = response.headers().toMultimap();
|
||||
byte[] errorResponseBody;
|
||||
try {
|
||||
errorResponseBody = Util.toByteArray(Assertions.checkNotNull(responseByteStream));
|
||||
} catch (IOException e) {
|
||||
errorResponseBody = Util.EMPTY_BYTE_ARRAY;
|
||||
}
|
||||
Map<String, List<String>> headers = response.headers().toMultimap();
|
||||
closeConnectionQuietly();
|
||||
InvalidResponseCodeException exception =
|
||||
new InvalidResponseCodeException(
|
||||
|
|
|
|||
Loading…
Reference in a new issue