You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ec...@apache.org on 2015/05/12 22:48:16 UTC
svn commit: r1679095 - in /commons/proper/vfs/trunk:
core/src/main/java/org/apache/commons/vfs2/provider/http/HttpClientFactory.java
src/changes/changes.xml
Author: ecki
Date: Tue May 12 20:48:16 2015
New Revision: 1679095
URL: http://svn.apache.org/r1679095
Log:
[VFS-560][http] Avoid HEAD request to server root when creating fs.
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpClientFactory.java
commons/proper/vfs/trunk/src/changes/changes.xml
Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpClientFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpClientFactory.java?rev=1679095&r1=1679094&r2=1679095&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpClientFactory.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpClientFactory.java Tue May 12 20:48:16 2015
@@ -146,8 +146,6 @@ public final class HttpClientFactory
final AuthScope scope = new AuthScope(hostname, AuthScope.ANY_PORT);
client.getState().setCredentials(scope, creds);
}
-
- client.executeMethod(new HeadMethod());
}
catch (final Exception exc)
{
Modified: commons/proper/vfs/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/src/changes/changes.xml?rev=1679095&r1=1679094&r2=1679095&view=diff
==============================================================================
--- commons/proper/vfs/trunk/src/changes/changes.xml (original)
+++ commons/proper/vfs/trunk/src/changes/changes.xml Tue May 12 20:48:16 2015
@@ -26,6 +26,9 @@
<!-- <action issue="VFS-443" dev="ggregory" type="update" due-to="nickallen"> -->
<!-- [Local] Need an easy way to convert from a FileObject to a File. -->
<!-- </action> -->
+ <action issue="VFS-560" dev="ecki" type="fix">
+ [http] avoid initial HEAD request to root of HttpFileSystem as it might be wrong context.
+ </action>
<action issue="VFS-236" dev="ecki" type="fix" due-to="Matt Casters">
[smb] Allow SMB to be used with no authentication.
</action>