comparison src/org/eclipse/jetty/http/HttpGenerator.java @ 1036:b87f97f6418a

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 21:42:41 -0600
parents 563458c4dc93
children b71ad168fe34
comparison
equal deleted inserted replaced
1035:898774c2cd87 1036:b87f97f6418a
152 flushBuffer(); 152 flushBuffer();
153 if (_content != null && _content.length()>0) 153 if (_content != null && _content.length()>0)
154 { 154 {
155 if (_bufferChunked) 155 if (_bufferChunked)
156 { 156 {
157 Buffer nc=_buffers.getBuffer(_content.length()+CHUNK_SPACE+content.length()); 157 Buffer nc = _buffers.getBuffer(_content.length()+CHUNK_SPACE+content.length());
158 nc.put(_content); 158 nc.put(_content);
159 nc.put(HttpTokens.CRLF); 159 nc.put(HttpTokens.CRLF);
160 BufferUtil.putHexInt(nc, content.length()); 160 BufferUtil.putHexInt(nc, content.length());
161 nc.put(HttpTokens.CRLF); 161 nc.put(HttpTokens.CRLF);
162 nc.put(content); 162 nc.put(content);
163 content=nc; 163 content=nc;
164 } 164 }
165 else 165 else
166 { 166 {
167 Buffer nc=_buffers.getBuffer(_content.length()+content.length()); 167 Buffer nc = _buffers.getBuffer(_content.length()+content.length());
168 nc.put(_content); 168 nc.put(_content);
169 nc.put(content); 169 nc.put(content);
170 content=nc; 170 content=nc;
171 } 171 }
172 } 172 }