Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
auth_digest returns 400 on wrong scheme, should be 401 #1719
The docs for the digest auth tool indicate that a 401 will be returned if the wrong scheme is supplied.
But tracing the code, it seems that when the scheme is wrong, a ValueError is raised and that's translated into a 400 response. I suspect the 401 response is the correct thing to do.