Describe the bug
We are running Spring Cloud Config with the Git backend and we've identified that when we call /actuator/health it's first making a call to the git repo and receiving a 401 (Unauthorized), and right away a call that succeeds. It appears as if the first request is not sending the credentials, but the second is.
This doesn't seem right, am I missing something? I'm using a version a bit old (2.1.2.RELEASE), I looked through the issues but couldn't find any issue related to this.
Here is a screenshot of the outgoing calls that /actuator/health makes depicting the issue:

Notice how this is not an isolated incident, but rather, each failed attempt is followed by a successful one:
