diff src/org/eclipse/jetty/server/handler/ResourceHandler.java @ 1022:3718afd99988

HttpHeaders uses StringCache
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 01 Nov 2016 01:04:46 -0600
parents 6939226e0ac4
children 27f3dc761452
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/handler/ResourceHandler.java	Mon Oct 31 22:49:25 2016 -0600
+++ b/src/org/eclipse/jetty/server/handler/ResourceHandler.java	Tue Nov 01 01:04:46 2016 -0600
@@ -447,10 +447,10 @@
 			HttpFields fields = ((Response)response).getHttpFields();
 
 			if (length>0)
-				fields.putLongField(HttpHeaders.CONTENT_LENGTH_BUFFER,length);
+				fields.putLongField(HttpHeaders.CONTENT_LENGTH,length);
 
 			if (_cacheControl!=null)
-				fields.put(HttpHeaders.CACHE_CONTROL_BUFFER,_cacheControl);
+				fields.put(HttpHeaders.CACHE_CONTROL,_cacheControl.toString());
 		}
 		else
 		{