anchor.diff:    // requests and in error handling.
     bool _ignoreBody = false;
     bool _headersWritten = false;
  +  bool _encodingSet = false;
   
     final Uri _uri;
     final _HttpOutgoing _outgoing;
  
positive.code:   }
  
    void write(Object obj) {
      if (!_headersWritten) _encoding = encoding;
      super.write(obj);
    }
  
  
negative.code:   }
  
    Encoding get encoding {
      if (_encodingSet && _headersWritten) {
        return _encoding;
      }
      var charset;
      if (headers.contentType != null && headers.contentType.charset != null) {
        charset = headers.contentType.charset;
  