Mercurial Hosting > luan
diff src/goodjava/webserver/Connection.java @ 1607:fa066aaa068c
nginx caching
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 30 Apr 2021 20:23:28 -0600 |
parents | a0a74f5f490a |
children | a02a75e3daa8 |
line wrap: on
line diff
--- a/src/goodjava/webserver/Connection.java Tue Apr 20 18:06:50 2021 -0600 +++ b/src/goodjava/webserver/Connection.java Fri Apr 30 20:23:28 2021 -0600 @@ -114,8 +114,8 @@ msg = "invalid content for content-type " + contentType + "\n" + msg; response = Response.errorResponse(Status.BAD_REQUEST,msg); } - response.headers.put("connection","close"); - response.headers.put("content-length",Long.toString(response.body.length)); + response.headers.put("Connection","close"); + response.headers.put("Content-Length",Long.toString(response.body.length)); byte[] header = response.toHeaderString().getBytes(); OutputStream out = socket.getOutputStream();