comparison src/org/eclipse/jetty/http/HttpParser.java @ 1029:4e5e9e3c25b3

remove Buffer.equalsIgnoreCase()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 00:55:20 -0600
parents 2ea54e6117c3
children eca26899c4bc
comparison
equal deleted inserted replaced
1028:2ea54e6117c3 1029:4e5e9e3c25b3
208 // do we have content to deliver? 208 // do we have content to deliver?
209 if (_state>STATE_END) 209 if (_state>STATE_END)
210 { 210 {
211 if (_buffer.length()>0 && !_headResponse) 211 if (_buffer.length()>0 && !_headResponse)
212 { 212 {
213 Buffer chunk=_buffer.get(_buffer.length()); 213 Buffer chunk = _buffer.get(_buffer.length());
214 _contentPosition += chunk.length(); 214 _contentPosition += chunk.length();
215 _contentView.update(chunk); 215 _contentView.update(chunk);
216 _handler.content(chunk); // May recurse here 216 _handler.content(chunk); // May recurse here
217 } 217 }
218 } 218 }
1072 // TODO is this needed? 1072 // TODO is this needed?
1073 _endp.close(); 1073 _endp.close();
1074 throw e; 1074 throw e;
1075 } 1075 }
1076 1076
1077 return _contentView.length()>0?_contentView:null; 1077 return _contentView.length()>0 ? _contentView : null;
1078 } 1078 }
1079 1079
1080 /* ------------------------------------------------------------ */ 1080 /* ------------------------------------------------------------ */
1081 /* (non-Javadoc) 1081 /* (non-Javadoc)
1082 * @see java.io.InputStream#available() 1082 * @see java.io.InputStream#available()