comparison src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 1065:158d1e6ac17f

fix JBuffer.compact()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 09 Nov 2016 04:36:05 -0700
parents a0abb16cf6e7
children 9d357b9e4bcb
comparison
equal deleted inserted replaced
1064:a0abb16cf6e7 1065:158d1e6ac17f
736 public final void write(int b) throws IOException 736 public final void write(int b) throws IOException
737 { 737 {
738 if (_onebyte==null) 738 if (_onebyte==null)
739 _onebyte = BufferUtil.newBuffer(1); 739 _onebyte = BufferUtil.newBuffer(1);
740 else 740 else
741 _onebyte.clear(); 741 _onebyte.clearJ();
742 _onebyte.put((byte)b); 742 _onebyte.put((byte)b);
743 write(_onebyte); 743 write(_onebyte);
744 } 744 }
745 745
746 private void write(JBuffer buffer) throws IOException 746 private void write(JBuffer buffer) throws IOException