Make the response better

This commit is contained in:
DevSnaith 2023-04-13 07:06:39 +03:00
parent 5965e9fedc
commit 2ad8f735fe
2 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ public class HttpResponse {
try {
StringBuilder build = new StringBuilder(status_line+"\r\n");
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());
} catch (IOException e) {