Add support for 'http-reponse-headers' attribute to add custom response headers
This commit is contained in:
parent
d1ff472bda
commit
f371cff011
4 changed files with 33 additions and 0 deletions
|
|
@ -111,6 +111,12 @@ public class HttpServerConnection extends Thread {
|
|||
out.append(field.getValue());
|
||||
out.append("\r\n");
|
||||
}
|
||||
for(Entry<String, String> custom : HttpServer.getCustomHeaders().entrySet()) {
|
||||
out.append(custom.getKey());
|
||||
out.append(": ");
|
||||
out.append(custom.getValue());
|
||||
out.append("\r\n");
|
||||
}
|
||||
out.append("\r\n");
|
||||
out.flush();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue