fix checks

Signed-off-by: David Wu <david.wu@docker.com>
This commit is contained in:
David Wu
2018-09-20 14:53:34 -07:00
parent f730f3ab77
commit b2bd465760
3 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ func TestSillyAccessController(t *testing.T) {
if err != nil {
switch err := err.(type) {
case auth.Challenge:
err.SetHeaders(w)
err.SetHeaders(r, w)
w.WriteHeader(http.StatusUnauthorized)
return
default: