Commit 1db439a
committed
Conditional Basic Auth
Previously, basic auth headers were added to every DownloadCache
request. In the case where there were no basic auth credentials,
empty strings were used for the username and password. This was
wrong, although tolerated by the primarily used CloudFront. This
change ensures that basic auth headers are only added when there are
both a username and password specified.
[#72253796]1 parent 0c6c02a commit 1db439a
File tree
3 files changed
+9
-6
lines changed- .idea/copyright
- lib/java_buildpack/util/cache
3 files changed
+9
-6
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | 260 | | |
262 | | - | |
263 | | - | |
| 261 | + | |
| 262 | + | |
264 | 263 | | |
265 | 264 | | |
266 | 265 | | |
| |||
303 | 302 | | |
304 | 303 | | |
305 | 304 | | |
306 | | - | |
| 305 | + | |
307 | 306 | | |
308 | 307 | | |
309 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
0 commit comments