anchor.diff:    }
   
     void _onDataEnd() {
  -    if (_inputStream != null) _inputStream._closeReceived();
  -    _dataEndCalled = true;
  +    if (_inputStream != null) {
  +      _inputStream._closeReceived();
  +    } else {
  +      inputStream._streamMarkedClosed = true;
  +    }
     }
   
     // Escaped characters in uri are expected to have been parsed.
  
positive.code: 
    void _onDataEnd() {
      _connection._responseDone();
      if (_inputStream != null) _inputStream._closeReceived();
      _dataEndCalled = true;
    }
  
    // Delegate functions for the HttpInputStream implementation.
  
negative.code:   _HttpClientConnection _connection;
    _HttpInputStream _inputStream;
    _BufferList _buffer;
  
    Function _streamErrorHandler;
  }
  