Index: pkg/http/lib/src/io_client.dart |
diff --git a/pkg/http/lib/src/io_client.dart b/pkg/http/lib/src/io_client.dart |
index b4fa8930458904716bcbdbbf6d92d3aaf1a8b413..c12cac2d6329375e018591321c115a796204bc06 100644 |
--- a/pkg/http/lib/src/io_client.dart |
+++ b/pkg/http/lib/src/io_client.dart |
@@ -27,10 +27,11 @@ class IOClient extends BaseClient { |
return Chain.track(_inner.openUrl(request.method, request.url)) |
.then((ioRequest) { |
- ioRequest.followRedirects = request.followRedirects; |
- ioRequest.maxRedirects = request.maxRedirects; |
- ioRequest.contentLength = request.contentLength; |
- ioRequest.persistentConnection = request.persistentConnection; |
+ ioRequest |
+ ..followRedirects = request.followRedirects |
+ ..maxRedirects = request.maxRedirects |
+ ..contentLength = request.contentLength |
+ ..persistentConnection = request.persistentConnection; |
request.headers.forEach((name, value) { |
ioRequest.headers.set(name, value); |
}); |