Merge pull request #677 from syseleven/fix-4913
authorHunter Haugen <hunter@puppet.com>
Wed, 31 May 2017 22:30:40 +0000 (15:30 -0700)
committerHunter Haugen <hunter@puppet.com>
Wed, 31 May 2017 22:30:40 +0000 (15:30 -0700)
commite10e34e58f8187972e1d949eb5e4f15b6033bcce
treeba8e9e248245bcecccbe75fead64c6a84f285ab5
parent61f4e6aee2dc2a031e5ce8b8e97b55456c4e00a8
parent920e34c0b6f5847965f1897c81e3123ddff172cf
Merge pull request #677 from syseleven/fix-4913

https://tickets.puppetlabs.com/browse/MODULES-4913

Prior to this commit, apt_key always sent auth basic header when source
came from http(s). This might fail for some webservers (e.g. Amazon S3)
when empty auth basic is sent.

Now apt_key only sends the auth basic header when userinfo can
be parsed from the URL.

Please backport this to 2.4.x, since this is the release before incompatibility changes are made.