fix bug for HttpBufferedRequestWrapper