Fixed issue with HTTP printstream new line after header

This commit is contained in:
Ziver Koc 2020-11-10 15:31:25 +01:00
parent b7d0159096
commit 02b6e6ce44

View file

@ -247,7 +247,7 @@ public class HttpPrintStream extends OutputStream {
if (!header.getCookieMap().isEmpty()) { if (!header.getCookieMap().isEmpty()) {
if (header.isRequest()) { if (header.isRequest()) {
out.print(HttpHeader.HEADER_COOKIE); out.print(HttpHeader.HEADER_COOKIE + ":");
for (String key : header.getCookieMap().keySet()) { for (String key : header.getCookieMap().keySet()) {
out.print(" " + key + "=" + header.getCookie(key) + ";"); out.print(" " + key + "=" + header.getCookie(key) + ";");
} }
@ -260,6 +260,7 @@ public class HttpPrintStream extends OutputStream {
} }
} }
out.println();
header = null; header = null;
} }