Fix InvalidCredentials in HTTP auth