Skip to content

Commit

Permalink
Clarify base64 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
brandur committed Jul 28, 2017
1 parent a8a4d4d commit c402575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func TestValidateAuth(t *testing.T) {
{"Basic", false},
{"Bearer ", false},
{"Basic ", false},
{"Basic 123", false}, // "123" is not a valid key when decoded
{"Basic 123", false}, // "123" is not a valid key when base64 decoded
{"Basic " + encode64("sk_test"), false},
{"Bearer sk_test_123 extra", false},
{"Bearer sk_test", false},
Expand Down

0 comments on commit c402575

Please sign in to comment.