[HtmlUnit] SVN: [15485] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ WebClient7Test.java
rbri--- via HtmlUnit-develop <[email protected]> Wed, 18 Jul 2018 07:32:43 +0000
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 15485
http://sourceforge.net/p/htmlunit/code/15485
Author: rbri
Date: 2018-07-18 07:32:41 +0000 (Wed, 18 Jul 2018)
Log Message:
-----------
debug at the server
Modified Paths:
--------------
trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClient7Test.java
Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClient7Test.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClient7Test.java 2018-07-18 07:26:45 UTC (rev 15484)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClient7Test.java 2018-07-18 07:32:41 UTC (rev 15485)
@@ -234,7 +234,9 @@
if (header) {
firstResponse += "; charset=" + charset;
}
- firstResponse += "\r\n\r\n" + html;
+ firstResponse += "\r\n"
+ + "Connection: close\r\n"
+ + "\r\n" + html;
final String html2 = "<html><head></head><body>"
+ "</body></html>";
@@ -242,6 +244,7 @@
final String secondResponse = "HTTP/1.1 200 OK\r\n"
+ "Content-Length: " + html2.length() + "\r\n"
+ "Content-Type: text/html; charset=" + charset + "\r\n"
+ + "Connection: close\r\n"
+ "\r\n"
+ html2;
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot