Mercurial Hosting > luan
diff src/goodjava/webserver/handlers/DirHandler.java @ 1607:fa066aaa068c
nginx caching
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 30 Apr 2021 20:23:28 -0600 |
parents | 55d7b60c074d |
children | d88fb2eb15aa |
line wrap: on
line diff
--- a/src/goodjava/webserver/handlers/DirHandler.java Tue Apr 20 18:06:50 2021 -0600 +++ b/src/goodjava/webserver/handlers/DirHandler.java Fri Apr 30 20:23:28 2021 -0600 @@ -42,7 +42,7 @@ if( path.endsWith("/") && file.isDirectory() ) { DateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss zzz"); Response response = new Response(); - response.headers.put( "content-type", "text/html; charset=utf-8" ); + response.headers.put( "Content-Type", "text/html; charset=utf-8" ); Writer writer = new OutputStreamWriter( new ResponseOutputStream(response) ); writer.write( "<!doctype html>\n<html>\n" ); writer.write( "\t<head>\n" );