[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit WebConversation.java,1.29,1.30
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-03-19 19:43:50
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv4801/src/com/meterware/httpunit
Modified Files:
WebConversation.java
Log Message:
Disable HTTP URL Connection per instance, not globally
Index: WebConversation.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebConversation.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- WebConversation.java 19 Mar 2003 19:08:58 -0000 1.29
+++ WebConversation.java 19 Mar 2003 19:43:46 -0000 1.30
@@ -73,13 +73,10 @@
//---------------------------------- private members --------------------------------
- static {
- HttpURLConnection.setFollowRedirects( false );
- }
-
private URLConnection openConnection( URL url ) throws MalformedURLException, IOException {
URLConnection connection = url.openConnection();
+ if (connection instanceof HttpURLConnection) ((HttpURLConnection) connection).setInstanceFollowRedirects( false );
connection.setUseCaches( false );
sendHeaders( connection );
return connection;
|