saltstack/salt — pull request #13806 by whiteinge (2014-06-27 20:05:52+00:00)
Title: Raise a 401 reponse instead of redirecting to the login page

Also fixed bad tests that should have caught this.

Fixes saltstack/salt-api#155.