Mercurial Hosting > luan
comparison src/luan/webserver/Response.java @ 1148:49fb4e83484f
webserver - change headers to lower case
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 04 Feb 2018 17:11:06 -0700 |
parents | 2dda3c92a473 |
children | 4beabb087be6 |
comparison
equal
deleted
inserted
replaced
1147:30d87b7d1d62 | 1148:49fb4e83484f |
---|---|
10 public class Response { | 10 public class Response { |
11 public final String protocol = "HTTP/1.1"; | 11 public final String protocol = "HTTP/1.1"; |
12 public volatile Status status = Status.OK; | 12 public volatile Status status = Status.OK; |
13 public final Map<String,Object> headers = Collections.synchronizedMap(new LinkedHashMap<String,Object>()); | 13 public final Map<String,Object> headers = Collections.synchronizedMap(new LinkedHashMap<String,Object>()); |
14 { | 14 { |
15 headers.put("Server","ThreeBody"); | 15 headers.put("server","Luan"); |
16 } | 16 } |
17 public volatile Body body; | 17 public volatile Body body; |
18 | 18 |
19 public static class Body { | 19 public static class Body { |
20 public final long length; | 20 public final long length; |