mirror of
https://github.com/devsnaith/lumiere-server.git
synced 2024-11-23 17:13:14 +03:00
Make the response better
This commit is contained in:
parent
5965e9fedc
commit
2ad8f735fe
Binary file not shown.
@ -29,7 +29,7 @@ public class HttpResponse {
|
|||||||
try {
|
try {
|
||||||
StringBuilder build = new StringBuilder(status_line+"\r\n");
|
StringBuilder build = new StringBuilder(status_line+"\r\n");
|
||||||
for(String key : getKeySet()) {
|
for(String key : getKeySet()) {
|
||||||
build.append(String.format("%s : %s\r\n", key, getProperty(key)));
|
build.append(String.format("%s: %s\r\n", key, getProperty(key)));
|
||||||
}
|
}
|
||||||
client.getOutputStream().write(build.append("\r\n").append(body).toString().getBytes());
|
client.getOutputStream().write(build.append("\r\n").append(body).toString().getBytes());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user