Mercurial Hosting > luan
diff 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 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpParser.java Tue Nov 08 00:27:16 2016 -0700 +++ b/src/org/eclipse/jetty/http/HttpParser.java Tue Nov 08 00:32:02 2016 -0700 @@ -290,7 +290,7 @@ // Handle header states byte ch; - byte[] array = _buffer.array(); + byte[] array = _buffer.hasArray() ? _buffer.array() : null; int last = _state; while (_state<STATE_END && length-->0) {