comparison src/org/eclipse/jetty/http/HttpParser.java @ 1016:8c13b9224cff

remove returnBuffer()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 24 Oct 2016 01:38:00 -0600
parents 0e96ce3db20a
children d2c3ff33387c
comparison
equal deleted inserted replaced
1015:0114d373748e 1016:8c13b9224cff
1013 { 1013 {
1014 if (_body!=null && !_body.hasContent() && _body.markIndex()==-1 && _buffers!=null) 1014 if (_body!=null && !_body.hasContent() && _body.markIndex()==-1 && _buffers!=null)
1015 { 1015 {
1016 if (_buffer==_body) 1016 if (_buffer==_body)
1017 _buffer=_header; 1017 _buffer=_header;
1018 if (_buffers!=null)
1019 _buffers.returnBuffer(_body);
1020 _body=null; 1018 _body=null;
1021 } 1019 }
1022 1020
1023 if (_header!=null && !_header.hasContent() && _header.markIndex()==-1 && _buffers!=null) 1021 if (_header!=null && !_header.hasContent() && _header.markIndex()==-1 && _buffers!=null)
1024 { 1022 {
1025 if (_buffer==_header) 1023 if (_buffer==_header)
1026 _buffer=null; 1024 _buffer=null;
1027 _buffers.returnBuffer(_header);
1028 _header=null; 1025 _header=null;
1029 } 1026 }
1030 } 1027 }
1031 1028
1032 @Override 1029 @Override