Index: sdk/lib/io/http_impl.dart |
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart |
index 34d36684489b26bb215a0779f9b55267272aa9f4..94aed0002cbe62503fc769d750c1f193fd927e5d 100644 |
--- a/sdk/lib/io/http_impl.dart |
+++ b/sdk/lib/io/http_impl.dart |
@@ -1333,7 +1333,7 @@ class _HttpClientConnection { |
} |
// Start sending the request (lazy, delayed until the user provides |
// data). |
- _httpParser.responseToMethod = method; |
+ _httpParser.isHead = method == "HEAD"; |
_streamFuture = outgoing.done |
.then((s) { |
// Request sent, set up response completer. |