Fixed creating the correct auth header when no standard hub images is…
Created by: brunifrancesco
This PR fixes issues related to create the auth header when no standard Docker registry is used. As an example, unauthenticated requests to Sonatype Nexus Repository returns a www-authenticate header as BASIC realm="Sonatype Nexus Repository which implied an empty auth header returned by the _get_v2_auth function.