コード例 #1
0
 internal void UpdateResponseEncoding()
 {
     if (this._responseEncodingUpdated && (this._charBufferLength != this._charBufferFree))
     {
         this.FlushCharBuffer(true);
     }
     this._responseEncoding = this._response.ContentEncoding;
     this._responseEncoder  = this._response.ContentEncoder;
     this._responseCodePage = this._responseEncoding.CodePage;
     this._responseCodePageIsAsciiCompat = CodePageUtils.IsAsciiCompatibleCodePage(this._responseCodePage);
     this._responseEncodingUpdated       = true;
 }
コード例 #2
0
        internal void UpdateResponseEncoding()
        {
            if (_charBufferLength != _charBufferFree)
            {
                FlushCharBuffer(true);
            }

            _responseEncoding = _response.ContentEncoding;
            _responseEncoder  = _response.ContentEncoder;
            _responseCodePage = _responseEncoding.CodePage;
            _responseCodePageIsAsciiCompat = CodePageUtils.IsAsciiCompatibleCodePage(_responseCodePage);
        }