Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andyroyle committed Dec 10, 2018
1 parent 749d856 commit ca6ea7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ func TestLoadAuthSchemes(t *testing.T) {
Name: "myauth",
Type: "basic",
Basic: config.BasicAuth{
File: "/some/non/existant/file",
File: "/some/non/existent/file",
},
},
})

const errorText = "open /some/non/existant/file: no such file or directory"
const errorText = "open /some/non/existent/file: no such file or directory"

if err.Error() != errorText {
t.Fatalf("got %s, want %s", err.Error(), errorText)
Expand Down
2 changes: 1 addition & 1 deletion auth/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func TestBasic_Authorized_should_set_www_realm_header(t *testing.T) {
_ = basicAuth.Authorized(&http.Request{Header: http.Header{}}, rw)

got := rw.Header().Get("WWW-Authenticate")
want := "Basic realm=\"testrealm\""
want := `Basic realm="testrealm"`

if strings.Compare(got, want) != 0 {
t.Errorf("got '%s', want '%s'", got, want)
Expand Down
2 changes: 1 addition & 1 deletion docs/content/feature/authorization.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Authorization"
since: "1.5.10"
since: "1.5.11"
---

fabio supports basic http authorization on a per-route basis.
Expand Down

0 comments on commit ca6ea7d

Please sign in to comment.