Fixed issue with HTTP printstream new line after header
This commit is contained in:
parent
b7d0159096
commit
02b6e6ce44
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue