mirror of https://github.com/apache/maven.git
modified the test to check for general proxy flow, not just a non-spec header. "Proxy-Connection" is not part of http spec, but an extended header, and as such cannot be expected from all the clients
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@700208 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f586defdf7
commit
fc50806a2f
|
@ -76,6 +76,12 @@ public class MavenITmng3599useHttpProxyForWebDAV
|
|||
|
||||
System.out.println( "Proxy-Connection found." );
|
||||
}
|
||||
/*
|
||||
* 2008-09-29 Oleg: "Proxy-Connection" is not part of http spec, but an extended header, and
|
||||
* as such cannot be expected from all the clients.
|
||||
* Changing the code to test for more generalized case: local proxy receives a request with
|
||||
* correct server url and resource uri
|
||||
*/
|
||||
else if(
|
||||
request.getRequestURI().startsWith( "/org/apache/maven/its/mng3599/test-dependency" )
|
||||
&& request.getRequestURL().toString().startsWith( "http://www.example.com" )
|
||||
|
|
Loading…
Reference in New Issue