Fix hang when downloads fail

The HTTP client wasn't closed and kept the VM alive, probably because
the body of an error response wasn't consumed.

Change-Id: I7534dea010d88d155d664891bb523f097a5cda4d
Reviewed-on: https://dart-review.googlesource.com/c/deps/+/365760
Reviewed-by: Martin Kustermann <kustermann@google.com>
Auto-Submit: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
1 file changed
tree: 44b7b04e698ce2aef4ce85f13f8d7e038056b66e
  1. .github/
  2. bin/
  3. lib/
  4. test/
  5. .gitignore
  6. analysis_options.yaml
  7. AUTHORS
  8. CHANGELOG.md
  9. LICENSE
  10. OWNERS
  11. pubspec.lock
  12. pubspec.yaml
  13. README.md
README.md

Tools that create packages needed by the Dart SDK.