diff src/goodjava/webserver/handlers/SafeHandler.java @ 1607:fa066aaa068c

nginx caching
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 30 Apr 2021 20:23:28 -0600
parents 27efb1fcbcb5
children
line wrap: on
line diff
--- a/src/goodjava/webserver/handlers/SafeHandler.java	Tue Apr 20 18:06:50 2021 -0600
+++ b/src/goodjava/webserver/handlers/SafeHandler.java	Fri Apr 30 20:23:28 2021 -0600
@@ -31,7 +31,7 @@
 			logger.error("",e);
 			Response response = new Response();
 			response.status = Status.INTERNAL_SERVER_ERROR;
-			response.headers.put( "content-type", "text/plain; charset=utf-8" );
+			response.headers.put( "Content-Type", "text/plain; charset=utf-8" );
 			PrintWriter writer = new PrintWriter( new ResponseOutputStream(response) );
 			writer.write( "Internel Server Error\n\n" );
 			e.printStackTrace(writer);