diff src/org/eclipse/jetty/http/HttpGenerator.java @ 1022:3718afd99988

HttpHeaders uses StringCache
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 01 Nov 2016 01:04:46 -0600
parents e350c11242be
children 563458c4dc93
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpGenerator.java	Mon Oct 31 22:49:25 2016 -0600
+++ b/src/org/eclipse/jetty/http/HttpGenerator.java	Tue Nov 01 01:04:46 2016 -0600
@@ -606,7 +606,7 @@
 						if (content_length == null && (isResponse() || _contentLength>0 || content_type ) && !_noContent)
 						{
 							// known length but not actually set.
-							_header.put(HttpHeaders.CONTENT_LENGTH_BUFFER);
+							_header.put(HttpHeaders.CONTENT_LENGTH_BYTES);
 							_header.put(HttpTokens.COLON);
 							_header.put((byte) ' ');
 							BufferUtil.putDecLong(_header, _contentLength);