comparison src/org/eclipse/jetty/http/HttpParser.java @ 1053:7e4b41247544

fix JBuffer.array()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 08 Nov 2016 00:32:02 -0700
parents 4a2489f1d5fe
children 87275900646e
comparison
equal deleted inserted replaced
1052:4a2489f1d5fe 1053:7e4b41247544
288 } 288 }
289 289
290 290
291 // Handle header states 291 // Handle header states
292 byte ch; 292 byte ch;
293 byte[] array = _buffer.array(); 293 byte[] array = _buffer.hasArray() ? _buffer.array() : null;
294 int last = _state; 294 int last = _state;
295 while (_state<STATE_END && length-->0) 295 while (_state<STATE_END && length-->0)
296 { 296 {
297 if (last!=_state) 297 if (last!=_state)
298 { 298 {