mirror of https://github.com/apache/maven.git
Don't add header if already present
This commit is contained in:
parent
46e6c42158
commit
a2563b08c6
|
@ -243,7 +243,7 @@ public class DefaultWagonManager
|
|||
// See org.eclipse.aether.connector.wagon.WagonRepositoryConnector.connectWagon(Wagon)
|
||||
if( legacySupport.getRepositorySession() != null )
|
||||
{
|
||||
String userAgent = ConfigUtils.getString( legacySupport.getRepositorySession(), ConfigurationProperties.USER_AGENT );
|
||||
String userAgent = ConfigUtils.getString( legacySupport.getRepositorySession(), null, ConfigurationProperties.USER_AGENT );
|
||||
if( userAgent == null)
|
||||
{
|
||||
Properties headers = new Properties();
|
||||
|
|
Loading…
Reference in New Issue