Skip to content

Commit

Permalink
Merge pull request #13 from tvolkert/uint8list
Browse files Browse the repository at this point in the history
Prepare for Uint8List SDK breaking change
  • Loading branch information
soernt authored Jul 8, 2019
2 parents 8040163 + 3ad758e commit 288cb37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dartio_http_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ class DartIOHttpClient extends SignalRHttpClient {
final isJsonContent =
contentTypeHeader.indexOf("application/json") != -1;
if (isJsonContent) {
content = await httpResp.transform(utf8.decoder).join();
content = await utf8.decoder.bind(httpResp).join();
} else {
content = await httpResp.transform(utf8.decoder).join();
content = await utf8.decoder.bind(httpResp).join();
// When using SSE and the uri has an 'id' query parameter the response is not evaluated, otherwise it is an error.
if (isStringEmpty(uri.queryParameters['id'])) {
throw ArgumentError(
Expand Down

0 comments on commit 288cb37

Please sign in to comment.